Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkFFTWRealToComplexConjugateImageFilter.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkFFTWRealToComplexConjugateImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/11/10 18:51:52 $ 00007 Version: $Revision: 1.3 $ 00008 00009 Copyright (c) 2002 Insight Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 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 // these should be defined in every FFT filter class 00045 virtual void GenerateData(); // generates output from input 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&); //purposely not implemented 00069 void operator=(const Self&); //purposely not implemented 00070 bool M_PlanComputed; 00071 bool M_PlanComputedf; 00072 // 00073 // kludge -- the template class has code for both double and float, 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

Generated at Sun Apr 1 02:28:26 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000