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

itkFFTComplexConjugateToRealImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkFFTComplexConjugateToRealImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2010-06-04 13:01:22 $
00007   Version:   $Revision: 1.11 $
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 __itkFFTComplexConjugateToRealImageFilter_h
00018 #define __itkFFTComplexConjugateToRealImageFilter_h
00019 
00020 
00021 #include <itkImageToImageFilter.h>
00022 #include <itkImage.h>
00023 #include <complex>
00024 
00025 namespace itk
00026 {
00033 template < class TPixel,unsigned int VDimension = 3 >
00034 class ITK_EXPORT FFTComplexConjugateToRealImageFilter :
00035     public ImageToImageFilter< Image< std::complex< TPixel > , VDimension >,
00036                                Image< TPixel,VDimension > >
00037 
00038 {
00039 public:
00041   typedef Image< std::complex< TPixel > ,VDimension> TInputImageType;
00042   typedef Image<TPixel,VDimension>                   TOutputImageType;
00043 
00044   typedef FFTComplexConjugateToRealImageFilter                    Self;
00045   typedef ImageToImageFilter< TInputImageType, TOutputImageType > Superclass;
00046   typedef SmartPointer<Self>                                      Pointer;
00047   typedef SmartPointer<const Self>                                ConstPointer;
00048 
00049   itkStaticConstMacro(ImageDimension, unsigned int,
00050                       TInputImageType::ImageDimension );
00051 
00053   itkTypeMacro(FFTComplexConjugateToRealImageFilter, ImageToImageFilter);
00054 
00060   static Pointer New(void);
00061 
00063   typedef TInputImageType              ImageType;
00064   typedef typename ImageType::SizeType ImageSizeType;
00065   virtual void GenerateOutputInformation(); // figure out allocation for output image
00066   virtual void GenerateInputRequestedRegion();
00067   virtual bool FullMatrix() = 0; // must be implemented in child  
00068   void SetActualXDimensionIsOdd(bool isodd) 
00069     { 
00070     m_ActualXDimensionIsOdd = isodd; 
00071     }
00072   void SetActualXDimensionIsOddOn()
00073     { 
00074     this->SetActualXDimensionIsOdd(true);
00075     }
00076   void SetActualXDimensionIsOddOff()
00077     { 
00078     this->SetActualXDimensionIsOdd(false);
00079     }
00080   bool ActualXDimensionIsOdd()
00081     {
00082     return m_ActualXDimensionIsOdd;
00083     }
00084 protected:
00085   FFTComplexConjugateToRealImageFilter() : m_ActualXDimensionIsOdd(false) {}
00086   virtual ~FFTComplexConjugateToRealImageFilter(){}
00087   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));  
00089 
00090 private:
00091   bool m_ActualXDimensionIsOdd;
00092   FFTComplexConjugateToRealImageFilter(const Self&); //purposely not implemented
00093   void operator=(const Self&); //purposely not implemented
00094 };
00095 
00096 } // end namespace itk
00097 
00098 #ifndef ITK_MANUAL_INSTANTIATION
00099 #ifndef __itkVnlFFTComplexConjugateToRealImageFilter_h
00100 #ifndef __itkVnlFFTComplexConjugateToRealImageFilter_txx
00101 #ifndef __itkFFTWComplexConjugateToRealImageFilter_h
00102 #ifndef __itkFFTWComplexConjugateToRealImageFilter_txx
00103 #include "itkFFTComplexConjugateToRealImageFilter.txx"
00104 #endif
00105 #endif
00106 #endif
00107 #endif
00108 #endif
00109 
00110 
00111 #endif
00112 

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