00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkVnlFFTComplexConjugateToRealImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009-01-27 19:30:16 $ 00007 Version: $Revision: 1.13 $ 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 __itkVnlFFTComplexConjugateToRealImageFilter_h 00018 #define __itkVnlFFTComplexConjugateToRealImageFilter_h 00019 #include "itkFFTComplexConjugateToRealImageFilter.h" 00020 00021 namespace itk 00022 { 00023 00028 template <class TPixel, unsigned int VDimension = 3> 00029 class VnlFFTComplexConjugateToRealImageFilter : 00030 public FFTComplexConjugateToRealImageFilter<TPixel,VDimension> 00031 { 00032 public: 00034 typedef Image< std::complex<TPixel>,VDimension> TInputImageType; 00035 typedef Image<TPixel,VDimension> TOutputImageType; 00036 00037 typedef VnlFFTComplexConjugateToRealImageFilter Self; 00038 typedef FFTComplexConjugateToRealImageFilter<TPixel,VDimension> Superclass; 00039 typedef SmartPointer<Self> Pointer; 00040 typedef SmartPointer<const Self> ConstPointer; 00041 00043 itkNewMacro(Self); 00044 00046 itkTypeMacro(VnlFFTComplexConjugateToRealImageFilter, 00047 FFTComplexConjugateToRealImageFilter); 00048 00050 typedef TInputImageType ImageType; 00051 typedef typename ImageType::SizeType ImageSizeType; 00052 00053 // 00054 // these should be defined in every FFT filter class 00055 virtual void GenerateData(); // generates output from input 00056 virtual bool FullMatrix(); 00057 00058 #ifdef ITK_USE_CONCEPT_CHECKING 00059 00060 itkConceptMacro(PixelUnsignedIntDivisionOperatorsCheck, 00061 (Concept::DivisionOperators<TPixel, unsigned int>)); 00062 00064 #endif 00065 00066 protected: 00067 VnlFFTComplexConjugateToRealImageFilter() { } 00068 virtual ~VnlFFTComplexConjugateToRealImageFilter(){ } 00069 00070 private: 00071 inline std::complex<TPixel> myConj(const std::complex<TPixel>& __z) 00072 { 00073 return std::complex<TPixel>(__z.real(), -__z.imag()); 00074 } 00075 VnlFFTComplexConjugateToRealImageFilter(const Self&); //purposely not implemented 00076 void operator=(const Self&); //purposely not implemented 00077 }; 00078 00079 } 00080 00081 #ifndef ITK_MANUAL_INSTANTIATION 00082 #include "itkVnlFFTComplexConjugateToRealImageFilter.txx" 00083 #endif 00084 00085 #endif 00086