ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkVnlHalfHermitianToRealInverseFFTImageFilter.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 __itkVnlHalfHermitianToRealInverseFFTImageFilter_h
00019 #define __itkVnlHalfHermitianToRealInverseFFTImageFilter_h
00020 
00021 #include "itkHalfHermitianToRealInverseFFTImageFilter.h"
00022 #include "itkVnlFFTCommon.h"
00023 
00024 #include "itkImage.h"
00025 #include "vnl/algo/vnl_fft_base.h"
00026 
00027 namespace itk
00028 {
00042 template< class TInputImage, class TOutputImage=Image< typename TInputImage::PixelType::value_type, TInputImage::ImageDimension> >
00043 class VnlHalfHermitianToRealInverseFFTImageFilter:
00044   public HalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage >
00045 {
00046 public:
00048   typedef TInputImage                              InputImageType;
00049   typedef typename InputImageType::PixelType       InputPixelType;
00050   typedef typename InputImageType::SizeType        InputSizeType;
00051   typedef typename InputImageType::IndexType       InputIndexType;
00052   typedef typename InputImageType::SizeValueType   InputSizeValueType;
00053   typedef TOutputImage                             OutputImageType;
00054   typedef typename OutputImageType::PixelType      OutputPixelType;
00055   typedef typename OutputImageType::IndexType      OutputIndexType;
00056   typedef typename OutputImageType::SizeType       OutputSizeType;
00057   typedef typename OutputImageType::IndexValueType OutputIndexValueType;
00058 
00059   typedef VnlHalfHermitianToRealInverseFFTImageFilter                           Self;
00060   typedef HalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage > Superclass;
00061   typedef SmartPointer< Self >                                                  Pointer;
00062   typedef SmartPointer< const Self >                                            ConstPointer;
00063 
00065   itkNewMacro(Self);
00066 
00068   itkTypeMacro(VnlHalfHermitianToRealInverseFFTImageFilter,
00069                HalfHermitianToRealInverseFFTImageFilter);
00070 
00073   itkStaticConstMacro(ImageDimension, unsigned int,
00074                       TOutputImage::ImageDimension);
00075   itkStaticConstMacro(InputImageDimension, unsigned int,
00076                       TInputImage::ImageDimension);
00077   itkStaticConstMacro(OutputImageDimension, unsigned int,
00078                       TOutputImage::ImageDimension);
00080 
00081 #ifdef ITK_USE_CONCEPT_CHECKING
00082 
00083   itkConceptMacro( PixelUnsignedIntDivisionOperatorsCheck,
00084                    ( Concept::DivisionOperators< OutputPixelType, unsigned int > ) );
00085   itkConceptMacro( ImageDimensionsMatchCheck,
00086                    ( Concept::SameDimension< InputImageDimension, OutputImageDimension > ) );
00087 
00089 #endif
00090 
00091 protected:
00092   VnlHalfHermitianToRealInverseFFTImageFilter()  {}
00093   virtual ~VnlHalfHermitianToRealInverseFFTImageFilter(){}
00094 
00095   virtual void GenerateData();
00096 
00097 private:
00098   VnlHalfHermitianToRealInverseFFTImageFilter(const Self &); //purposely not implemented
00099   void operator=(const Self &);                          //purposely not implemented
00100 
00101   typedef vnl_vector< InputPixelType  > SignalVectorType;
00102 };
00103 }
00104 
00105 #ifndef ITK_MANUAL_INSTANTIATION
00106 #include "itkVnlHalfHermitianToRealInverseFFTImageFilter.hxx"
00107 #endif
00108 
00109 #endif
00110