# FFT Use Image As Template Parameter

Gaëtan Lehmann
2011-04-07
The FFT filters now take an image type as template parameter. The FFT filters were using the pixel type and the image dimension instead of the usual image type used elsewhere in ITK.

typedef double WorkPixelType; const unsigned int Dimension = 3; typedef itk::VnlFFTRealToComplexConjugateImageFilter< WorkPixelType, Dimension > FFTFilterType; typedef itk::VnlFFTComplexConjugateToRealImageFilter< WorkPixelType, Dimension > invFFTFilterType;
typedef double WorkPixelType; const unsigned int Dimension = 3; typedef itk::Image< WorkPixelType, Dimension > WorkImageType; typedef itk::VnlForwardFFTImageFilter < WorkImageType > FFTFilterType; typedef itk::VnlInverseFFTImageFilter < ComplexImageType > InvFFTFilterType;
Ic4f6c1733ae75173079af4e684a34827dadbd99c
Examples/Filtering/FFTDirectInverse.cxx Examples/Filtering/FFTDirectInverse2.cxx Examples/Filtering/FFTImageFilter.cxx Examples/Filtering/FFTImageFilterFourierDomainFiltering.cxx Modules/Filtering/FFT/include/itkFFTComplexConjugateToRealImageFilter.h Modules/Filtering/FFT/include/itkFFTComplexConjugateToRealImageFilter.txx Modules/Filtering/FFT/include/itkFFTRealToComplexConjugateImageFilter.h Modules/Filtering/FFT/include/itkFFTRealToComplexConjugateImageFilter.txx Modules/Filtering/FFT/include/itkFFTWComplexConjugateToRealImageFilter.h Modules/Filtering/FFT/include/itkFFTWComplexConjugateToRealImageFilter.txx Modules/Filtering/FFT/include/itkFFTWRealToComplexConjugateImageFilter.h Modules/Filtering/FFT/include/itkFFTWRealToComplexConjugateImageFilter.txx Modules/Filtering/FFT/include/itkVnlFFTComplexConjugateToRealImageFilter.h Modules/Filtering/FFT/include/itkVnlFFTComplexConjugateToRealImageFilter.txx Modules/Filtering/FFT/include/itkVnlFFTRealToComplexConjugateImageFilter.h Modules/Filtering/FFT/include/itkVnlFFTRealToComplexConjugateImageFilter.txx Modules/Filtering/FFT/test/itkFFTWD_FFTTest.cxx Modules/Filtering/FFT/test/itkFFTWF_FFTTest.cxx Modules/Filtering/FFT/test/itkVnlFFTTest.cxx Modules/Filtering/FFT/test/itkVnlFFTWD_FFTTest.cxx Modules/Filtering/FFT/test/itkVnlFFTWF_FFTTest.cxx Modules/Nonunit/Review/include/itkDirectFourierReconstructionImageToImageFilter.h Modules/Nonunit/Review/include/itkDirectFourierReconstructionImageToImageFilter.txx Modules/Nonunit/Review/include/itkFFTComplexToComplexImageFilter.h Modules/Nonunit/Review/include/itkFFTComplexToComplexImageFilter.txx Modules/Nonunit/Review/include/itkFFTWComplexToComplexImageFilter.h Modules/Nonunit/Review/include/itkFFTWComplexToComplexImageFilter.txx Modules/Nonunit/Review/test/itkDirectFourierReconstructionImageToImageFilterTest.cxx Modules/Nonunit/Review/test/itkFFTComplexToComplexImageFilterTest01.cxx Modules/Nonunit/Review/test/itkFFTComplexToComplexImageFilterTest02.cxx Wrapping/WrapITK/Languages/Python/Tests/FFTImageFilter.py Wrapping/WrapITK/Libraries/FFT/itkDirectFourierReconstructionImageToImageFilter.wrap Wrapping/WrapITK/Libraries/FFT/itkFFTComplexConjugateToRealImageFilter.wrap Wrapping/WrapITK/Libraries/FFT/itkFFTComplexToComplexImageFilter.wrap Wrapping/WrapITK/Libraries/FFT/itkFFTRealToComplexConjugateImageFilter.wrap Wrapping/WrapITK/Libraries/FFT/itkVnlFFTComplexConjugateToRealImageFilter.wrap Wrapping/WrapITK/Libraries/FFT/itkVnlFFTRealToComplexConjugateImageFilter.wrap Wrapping/WrapITK/Libraries/FFTW/itkFFTWComplexConjugateToRealImageFilter.wrap Wrapping/WrapITK/Libraries/FFTW/itkFFTWComplexToComplexImageFilter.wrap Wrapping/WrapITK/Libraries/FFTW/itkFFTWRealToComplexConjugateImageFilter.wrap