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: 2010-02-26 05:28:24 $
00007   Version:   $Revision: 1.12 $
00008 
00009   Copyright (c) Insight Software 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 VDimension = 3>
00033 class ITK_EXPORT FFTWRealToComplexConjugateImageFilter :
00034     public FFTRealToComplexConjugateImageFilter<TPixel,VDimension>
00035 {
00036 public:
00037   typedef FFTWRealToComplexConjugateImageFilter                   Self;
00038   typedef FFTRealToComplexConjugateImageFilter<TPixel,VDimension> 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 
00091   TPixel *                             m_InputBuffer;
00092   typename FFTWProxyType::ComplexType *m_OutputBuffer;
00093 
00094 };
00095 } // namespace itk
00096 
00097 #ifndef ITK_MANUAL_INSTANTIATION
00098 #include "itkFFTWRealToComplexConjugateImageFilter.txx"
00099 #endif
00100 
00101 #endif //__itkFFTWRealToComplexConjugateImageFilter_h
00102 

Generated at Mon Jul 12 2010 18:20:04 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000