ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkFFTShiftImageFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkFFTShiftImageFilter_h
00019 #define __itkFFTShiftImageFilter_h
00020 
00021 #include "itkCyclicShiftImageFilter.h"
00022 
00023 namespace itk
00024 {
00047 template< class TInputImage, class TOutputImage >
00048 class ITK_EXPORT FFTShiftImageFilter :
00049   public CyclicShiftImageFilter< TInputImage, TOutputImage >
00050 {
00051 public:
00053   typedef FFTShiftImageFilter                                 Self;
00054   typedef CyclicShiftImageFilter< TInputImage, TOutputImage > Superclass;
00055   typedef SmartPointer< Self >                                Pointer;
00056   typedef SmartPointer< const Self >                          ConstPointer;
00057 
00059   typedef TInputImage                            InputImageType;
00060   typedef TOutputImage                           OutputImageType;
00061   typedef typename InputImageType::Pointer       InputImagePointer;
00062   typedef typename InputImageType::ConstPointer  InputImageConstPointer;
00063   typedef typename InputImageType::RegionType    InputImageRegionType;
00064   typedef typename InputImageType::PixelType     InputImagePixelType;
00065   typedef typename OutputImageType::Pointer      OutputImagePointer;
00066   typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
00067   typedef typename OutputImageType::RegionType   OutputImageRegionType;
00068   typedef typename OutputImageType::PixelType    OutputImagePixelType;
00069   typedef typename OutputImageType::IndexType    IndexType;
00070   typedef typename OutputImageType::SizeType     SizeType;
00071 
00073   itkStaticConstMacro(ImageDimension, unsigned int, TInputImage::ImageDimension);
00074 
00076   itkNewMacro(Self);
00077 
00079   itkTypeMacro(FFTShiftImageFilter, CyclicShiftImageFilter);
00080 
00085   itkSetMacro(Inverse, bool);
00086   itkGetConstReferenceMacro(Inverse, bool);
00087   itkBooleanMacro(Inverse);
00089 
00090 protected:
00091   FFTShiftImageFilter();
00092   ~FFTShiftImageFilter() {}
00093   void PrintSelf(std::ostream & os, Indent indent) const;
00094 
00097   void  GenerateData();
00098 
00099 private:
00100   FFTShiftImageFilter(const Self &); //purposely not implemented
00101   void operator=(const Self &);      //purposely not implemented
00102 
00103   bool m_Inverse;
00104 
00105 }; // end of class
00106 } // end namespace itk
00107 
00108 #ifndef ITK_MANUAL_INSTANTIATION
00109 #include "itkFFTShiftImageFilter.hxx"
00110 #endif
00111 
00112 #endif
00113