00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkFFTWComplexConjugateToRealImageFilter_h
00018 #define __itkFFTWComplexConjugateToRealImageFilter_h
00019 #include "itkFFTComplexConjugateToRealImageFilter.h"
00020 #ifdef USE_FFTW
00021 #include "fftw3.h"
00022
00023 namespace itk
00024 {
00025
00026 template <typename TPixel, unsigned int Dimension = 3>
00027 class FFTWComplexConjugateToRealImageFilter :
00028 public FFTComplexConjugateToRealImageFilter<TPixel,Dimension>
00029 {
00030 public:
00031
00032 typedef FFTWComplexConjugateToRealImageFilter Self;
00033 typedef FFTComplexConjugateToRealImageFilter<TPixel,Dimension> Superclass;
00034 typedef SmartPointer<Self> Pointer;
00035 typedef SmartPointer<const Self> constPointer;
00036
00038 typedef typename Superclass::TInputImageType TInputImageType;
00039 typedef typename Superclass::TOutputImageType TOutputImageType;
00040
00042 itkNewMacro(Self);
00043
00045 itkTypeMacro(FFTWComplexConjugateToRealImageFilter,
00046 FFTComplexConjugateToRealImageFilter);
00047
00049 typedef TInputImageType ImageType;
00050 typedef typename ImageType::SizeType ImageSizeType;
00051
00052
00053
00054 virtual void GenerateData();
00055 virtual bool FullMatrix();
00056 protected:
00057 FFTWComplexConjugateToRealImageFilter()
00058 {
00059 M_PlanComputed = false;
00060 M_PlanComputedf= false;
00061
00062 }
00063 virtual ~FFTWComplexConjugateToRealImageFilter(){
00064 if(M_PlanComputed)
00065 {
00066 fftw_destroy_plan(M_plan);
00067 }
00068 if(M_PlanComputedf)
00069 {
00070 fftwf_destroy_plan(M_planf);
00071 }
00072 }
00073 void PrintSelf(std::ostream& os, Indent indent) const;
00074
00075 private:
00076 FFTWComplexConjugateToRealImageFilter(const Self&);
00077 void operator=(const Self&);
00078 bool M_PlanComputed;
00079 bool M_PlanComputedf;
00080 fftw_plan M_plan;
00081 fftwf_plan M_planf;
00082 };
00083
00084 }
00085
00086 #ifndef ITK_MANUAL_INSTANTIATION
00087 #include "itkFFTWComplexConjugateToRealImageFilter.txx"
00088 #endif
00089 #endif // USE_FFTW
00090 #endif