ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkFFTComplexToComplexImageFilter.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 __itkFFTComplexToComplexImageFilter_h
00019 #define __itkFFTComplexToComplexImageFilter_h
00020 
00021 #include "itkImageToImageFilter.h"
00022 #include <complex>
00023 
00024 namespace itk
00025 {
00050 template< class TImage >
00051 class FFTComplexToComplexImageFilter:
00052   public ImageToImageFilter< TImage, TImage >
00053 {
00054 public:
00056   typedef TImage ImageType;
00057   typedef TImage InputImageType;
00058   typedef TImage OutputImageType;
00059 
00061   typedef FFTComplexToComplexImageFilter                        Self;
00062   typedef ImageToImageFilter< InputImageType, OutputImageType > Superclass;
00063   typedef SmartPointer< Self >                                  Pointer;
00064   typedef SmartPointer< const Self >                            ConstPointer;
00065 
00066   itkStaticConstMacro(ImageDimension, unsigned int,
00067                       InputImageType::ImageDimension);
00068 
00070   itkTypeMacro(FFTComplexToComplexImageFilter, ImageToImageFilter);
00071 
00077   static Pointer New(void);
00078 
00080   typedef enum {
00081     DIRECT = 1,
00082     INVERSE
00083     }                                             TransformDirectionType;
00084 
00086   typedef typename ImageType::SizeType ImageSizeType;
00087 
00092   itkSetMacro(TransformDirection, TransformDirectionType);
00093   itkGetConstMacro(TransformDirection, TransformDirectionType);
00094 protected:
00095   FFTComplexToComplexImageFilter() {}
00096   virtual ~FFTComplexToComplexImageFilter(){}
00098 
00100   virtual void GenerateOutputInformation(); // figure out allocation for output
00101                                             // image
00102 
00103   virtual void GenerateInputRequestedRegion();
00104 
00105   virtual bool FullMatrix() = 0; // must be implemented in child
00106 
00107 private:
00108   FFTComplexToComplexImageFilter(const Self &); //purposely not implemented
00109   void operator=(const Self &);                 //purposely not implemented
00110 
00111   TransformDirectionType m_TransformDirection;
00112 };
00113 } // end namespace itk
00114 
00115 #ifndef ITK_MANUAL_INSTANTIATION
00116 #include "itkFFTComplexToComplexImageFilter.hxx"
00117 #endif
00118 
00119 #endif
00120