itkFFTShiftImageFilter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkFFTShiftImageFilter_h
00018 #define __itkFFTShiftImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021
00022 namespace itk {
00023
00039 template<class TInputImage, class TOutputImage>
00040 class ITK_EXPORT FFTShiftImageFilter :
00041 public ImageToImageFilter<TInputImage, TOutputImage>
00042 {
00043 public:
00045 typedef FFTShiftImageFilter Self;
00046 typedef ImageToImageFilter<TInputImage, TOutputImage>
00047 Superclass;
00048 typedef SmartPointer<Self> Pointer;
00049 typedef SmartPointer<const Self> ConstPointer;
00050
00052 typedef TInputImage InputImageType;
00053 typedef TOutputImage OutputImageType;
00054 typedef typename InputImageType::Pointer InputImagePointer;
00055 typedef typename InputImageType::ConstPointer InputImageConstPointer;
00056 typedef typename InputImageType::RegionType InputImageRegionType;
00057 typedef typename InputImageType::PixelType InputImagePixelType;
00058 typedef typename OutputImageType::Pointer OutputImagePointer;
00059 typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
00060 typedef typename OutputImageType::RegionType OutputImageRegionType;
00061 typedef typename OutputImageType::PixelType OutputImagePixelType;
00062 typedef typename OutputImageType::IndexType IndexType;
00063 typedef typename OutputImageType::SizeType SizeType;
00064
00066 itkStaticConstMacro(ImageDimension, unsigned int,
00067 TInputImage::ImageDimension);
00068
00070 itkNewMacro(Self);
00071
00073 itkTypeMacro(FFTShiftImageFilter,
00074 ImageToImageFilter);
00075
00082 itkSetMacro(Inverse, bool);
00083 itkGetConstReferenceMacro(Inverse, bool);
00084 itkBooleanMacro(Inverse);
00086
00087 protected:
00088 FFTShiftImageFilter();
00089 ~FFTShiftImageFilter() {};
00090 void PrintSelf(std::ostream& os, Indent indent) const;
00091
00095 void GenerateInputRequestedRegion();
00096
00097
00099 void ThreadedGenerateData (const OutputImageRegionType&
00100 outputRegionForThread,
00101 int threadId);
00102
00103
00104 private:
00105 FFTShiftImageFilter(const Self&);
00106 void operator=(const Self&);
00107
00108 bool m_Inverse;
00109
00110 };
00111
00112 }
00113
00114 #ifndef ITK_MANUAL_INSTANTIATION
00115 #include "itkFFTShiftImageFilter.txx"
00116 #endif
00117
00118 #endif
00119