~ubuntu-branches/ubuntu/precise/insighttoolkit/precise

« back to all changes in this revision

Viewing changes to Code/BasicFilters/itkComplexToImaginaryImageFilter.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2008-12-19 20:16:49 UTC
  • mfrom: (1.2.1 upstream) (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081219201649-drt97guwl2ryt0cn

* New upstream version.
  - patches/nifti-versioning.patch: Remove.  Applied upstream.
  - control:
  - rules: Update version numbers, package names.

* control: Build-depend on uuid-dev (gdcm uses it).

* copyright: Update download URL.

* rules: Adhere to parallel=N in DEB_BUILD_OPTIONS by setting MAKEFLAGS.

* compat: Set to 7.
* control: Update build-dep on debhelper to version >= 7.

* CMakeCache.txt.debian: Set CMAKE_BUILD_TYPE to "RELEASE" so that we
  build with -O3 (not -O2), necessary to optimize the templated code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
  Program:   Insight Segmentation & Registration Toolkit
4
4
  Module:    $RCSfile: itkComplexToImaginaryImageFilter.h,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2007-09-27 11:36:40 $
7
 
  Version:   $Revision: 1.6 $
 
6
  Date:      $Date: 2008-10-13 18:54:27 $
 
7
  Version:   $Revision: 1.7 $
8
8
 
9
9
  Copyright (c) Insight Software Consortium. All rights reserved.
10
10
  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
37
37
  ComplexToImaginary() {}
38
38
  ~ComplexToImaginary() {}
39
39
  bool operator!=( const ComplexToImaginary & ) const
40
 
  {
 
40
    {
41
41
    return false;
42
 
  }
 
42
    }
43
43
  bool operator==( const ComplexToImaginary & other ) const
44
 
  {
 
44
    {
45
45
    return !(*this != other);
46
 
  }
 
46
    }
47
47
  inline TOutput operator()( const TInput & A )
48
 
  { return (TOutput)( A.imag() ); }
 
48
    {
 
49
    return (TOutput)( A.imag() );
 
50
    }
49
51
}; 
50
52
}
51
53
 
60
62
public:
61
63
  /** Standard class typedefs. */
62
64
  typedef ComplexToImaginaryImageFilter  Self;
63
 
  typedef UnaryFunctorImageFilter<TInputImage,TOutputImage, 
64
 
                                  Function::ComplexToImaginary< typename TInputImage::PixelType, 
65
 
                                                 typename TOutputImage::PixelType> >  Superclass;
66
 
  typedef SmartPointer<Self>   Pointer;
67
 
  typedef SmartPointer<const Self>  ConstPointer;
 
65
  typedef UnaryFunctorImageFilter<
 
66
    TInputImage,TOutputImage, 
 
67
    Function::ComplexToImaginary< typename TInputImage::PixelType, 
 
68
                                  typename TOutputImage::PixelType> >
 
69
                                         Superclass;
 
70
  typedef SmartPointer<Self>             Pointer;
 
71
  typedef SmartPointer<const Self>       ConstPointer;
68
72
 
69
73
  /** Method for creation through the object factory. */
70
74
  itkNewMacro(Self);
73
77
  itkTypeMacro(ComplexToImaginaryImageFilter, 
74
78
               UnaryFunctorImageFilter);
75
79
 
76
 
  typedef typename TInputImage::PixelType   InputPixelType;
77
 
  typedef typename TOutputImage::PixelType  OutputPixelType;
 
80
  typedef typename TInputImage::PixelType                     InputPixelType;
 
81
  typedef typename TOutputImage::PixelType                    OutputPixelType;
78
82
  typedef typename NumericTraits< InputPixelType >::ValueType InputPixelValueType;
79
83
 
80
84
#ifdef ITK_USE_CONCEPT_CHECKING