ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkHalfHermitianToRealInverseFFTImageFilter.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 __itkHalfHermitianToRealInverseFFTImageFilter_h
00019 #define __itkHalfHermitianToRealInverseFFTImageFilter_h
00020 
00021 #include "itkImageToImageFilter.h"
00022 
00023 namespace itk
00024 {
00052 template< class TInputImage, class TOutputImage=Image< typename TInputImage::PixelType::value_type, TInputImage::ImageDimension> >
00053 class ITK_EXPORT HalfHermitianToRealInverseFFTImageFilter:
00054   public ImageToImageFilter< TInputImage, TOutputImage >
00055 
00056 {
00057 public:
00059   typedef TInputImage                          InputImageType;
00060   typedef typename InputImageType::PixelType   InputPixelType;
00061   typedef TOutputImage                         OutputImageType;
00062   typedef typename OutputImageType::PixelType  OutputPixelType;
00063 
00064   typedef HalfHermitianToRealInverseFFTImageFilter              Self;
00065   typedef ImageToImageFilter< InputImageType, OutputImageType > Superclass;
00066   typedef SmartPointer< Self >                                  Pointer;
00067   typedef SmartPointer< const Self >                            ConstPointer;
00068 
00069   itkStaticConstMacro(ImageDimension, unsigned int,
00070                       InputImageType::ImageDimension);
00071 
00076   static Pointer New(void);
00077 
00079   void SetActualXDimensionIsOdd(bool isodd)
00080   {
00081     m_ActualXDimensionIsOdd = isodd;
00082   }
00083   void SetActualXDimensionIsOddOn()
00084   {
00085     this->SetActualXDimensionIsOdd(true);
00086   }
00087   void SetActualXDimensionIsOddOff()
00088   {
00089     this->SetActualXDimensionIsOdd(false);
00090   }
00091   bool GetActualXDimensionIsOdd()
00092   {
00093     return m_ActualXDimensionIsOdd;
00094   }
00096 
00097 protected:
00098   HalfHermitianToRealInverseFFTImageFilter():m_ActualXDimensionIsOdd(false) {}
00099   virtual ~HalfHermitianToRealInverseFFTImageFilter(){}
00100 
00103   virtual void GenerateOutputInformation();
00104 
00106   virtual void GenerateInputRequestedRegion();
00107 
00110   void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) );
00111 
00112 private:
00113   HalfHermitianToRealInverseFFTImageFilter(const Self &); // purposely not implemented
00114   void operator=(const Self &);        // purposely not implemented
00115 
00116   bool m_ActualXDimensionIsOdd;
00117 };
00118 } // end namespace itk
00119 
00120 #ifndef ITK_MANUAL_INSTANTIATION
00121 #ifndef __itkVnlHalfHermitianToRealInverseFFTImageFilter_h
00122 #ifndef __itkVnlHalfHermitianToRealInverseFFTImageFilter_hxx
00123 #ifndef __itkFFTWHalfHermitianToRealInverseFFTImageFilter_h
00124 #ifndef __itkFFTWHalfHermitianToRealInverseFFTImageFilter_hxx
00125 #include "itkHalfHermitianToRealInverseFFTImageFilter.hxx"
00126 #endif
00127 #endif
00128 #endif
00129 #endif
00130 #endif
00131 
00132 #endif
00133