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: 2006/08/29 21:30:32 $
00007   Version:   $Revision: 1.10 $
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 
00020 #include "itkFFTRealToComplexConjugateImageFilter.h"
00021 #include "itkFFTWCommon.h"
00022 
00023 
00024 namespace itk
00025 {
00032 template <class TPixel, unsigned int Dimension = 3>
00033 class ITK_EXPORT FFTWRealToComplexConjugateImageFilter :
00034     public FFTRealToComplexConjugateImageFilter<TPixel,Dimension>
00035 {
00036 public:
00037   typedef FFTWRealToComplexConjugateImageFilter Self;
00038   typedef FFTRealToComplexConjugateImageFilter<TPixel,Dimension> Superclass;
00039   typedef SmartPointer<Self> Pointer;
00040   typedef SmartPointer<const Self> constPointer;
00041 
00043   typedef typename Superclass::TInputImageType TInputImageType;
00044   typedef typename Superclass::TOutputImageType TOutputImageType;
00045 
00053   typedef typename fftw::Proxy<TPixel> FFTWProxyType;
00054 
00056   itkNewMacro(Self);
00057 
00059   itkTypeMacro(FFTWRealToComplexConjugateImageFilter,
00060                FFTRealToComplexConjugateImageFilter);
00061 
00062   //
00063   // these should be defined in every FFT filter class
00064   virtual void GenerateData();  // generates output from input
00065 
00066 protected:
00067   FFTWRealToComplexConjugateImageFilter() : m_PlanComputed(false),
00068                                             m_LastImageSize(0),
00069                                             m_InputBuffer(0),
00070                                             m_OutputBuffer(0)
00071   {
00072   }
00073   ~FFTWRealToComplexConjugateImageFilter()
00074   {
00075     if(m_PlanComputed)
00076       {
00077       FFTWProxyType::DestroyPlan(this->m_Plan);
00078       delete [] this->m_InputBuffer;
00079       delete [] this->m_OutputBuffer;
00080       }
00081   }
00082 
00083   virtual bool FullMatrix();
00084 private:
00085   FFTWRealToComplexConjugateImageFilter(const Self&); //purposely not implemented
00086   void operator=(const Self&); //purposely not implemented
00087   bool m_PlanComputed;
00088   typename FFTWProxyType::PlanType m_Plan;
00089   unsigned int m_LastImageSize;
00090   TPixel *m_InputBuffer;
00091   typename FFTWProxyType::ComplexType *m_OutputBuffer;
00092 
00093 };
00094 } // namespace itk
00095 
00096 #ifndef ITK_MANUAL_INSTANTIATION
00097 #include "itkFFTWRealToComplexConjugateImageFilter.txx"
00098 #endif
00099 
00100 #endif //__itkFFTWRealToComplexConjugateImageFilter_h
00101 

Generated at Wed Nov 5 21:25:05 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000