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

itkFFTWComplexConjugateToRealImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkFFTWComplexConjugateToRealImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/05/27 22:04:49 $
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 __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   // these should be defined in every FFT filter class
00054   virtual void GenerateData();  // generates output from input
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&); //purposely not implemented
00077   void operator=(const Self&); //purposely not implemented
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

Generated at Tue Aug 30 16:43:49 2005 for ITK by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2000