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