ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkVnlRealToHalfHermitianForwardFFTImageFilter.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 __itkVnlRealToHalfHermitianForwardFFTImageFilter_h
00019 #define __itkVnlRealToHalfHermitianForwardFFTImageFilter_h
00020 
00021 #include "itkRealToHalfHermitianForwardFFTImageFilter.h"
00022 #include "itkVnlFFTCommon.h"
00023 #include "vnl/algo/vnl_fft_base.h"
00024 
00025 namespace itk
00026 {
00040 template< class TInputImage, class TOutputImage=Image< std::complex<typename TInputImage::PixelType>, TInputImage::ImageDimension> >
00041 class VnlRealToHalfHermitianForwardFFTImageFilter:
00042   public RealToHalfHermitianForwardFFTImageFilter< TInputImage, TOutputImage >
00043 {
00044 public:
00046   typedef TInputImage                            InputImageType;
00047   typedef typename InputImageType::PixelType     InputPixelType;
00048   typedef typename InputImageType::SizeType      InputSizeType;
00049   typedef typename InputImageType::SizeValueType InputSizeValueType;
00050   typedef TOutputImage                           OutputImageType;
00051   typedef typename OutputImageType::PixelType    OutputPixelType;
00052   typedef typename OutputImageType::SizeType     OutputSizeType;
00053 
00054   typedef VnlRealToHalfHermitianForwardFFTImageFilter                           Self;
00055   typedef RealToHalfHermitianForwardFFTImageFilter<  TInputImage, TOutputImage> Superclass;
00056   typedef SmartPointer< Self >                                                Pointer;
00057   typedef SmartPointer< const Self >                                          ConstPointer;
00058 
00060   itkNewMacro(Self);
00061 
00063   itkTypeMacro(VnlRealToHalfHermitianForwardFFTImageFilter,
00064                RealToHalfHermitianForwardFFTImageFilter);
00065 
00068   itkStaticConstMacro(ImageDimension, unsigned int,
00069                       TOutputImage::ImageDimension);
00070   itkStaticConstMacro(InputImageDimension, unsigned int,
00071                       TInputImage::ImageDimension);
00072   itkStaticConstMacro(OutputImageDimension, unsigned int,
00073                       TOutputImage::ImageDimension);
00075 
00076 #ifdef ITK_USE_CONCEPT_CHECKING
00077 
00078   itkConceptMacro( ImageDimensionsMatchCheck,
00079                    ( Concept::SameDimension< InputImageDimension, OutputImageDimension > ) );
00080 
00082 #endif
00083 
00084 protected:
00085   VnlRealToHalfHermitianForwardFFTImageFilter() {}
00086   ~VnlRealToHalfHermitianForwardFFTImageFilter() {}
00087 
00088   void GenerateData();
00089 
00090 private:
00091   VnlRealToHalfHermitianForwardFFTImageFilter(const Self &); // purposely not implemented
00092   void operator=(const Self &);           // purposely not implemented
00093 
00094   typedef vnl_vector< vcl_complex< InputPixelType > > SignalVectorType;
00095 };
00096 }
00097 
00098 #ifndef ITK_MANUAL_INSTANTIATION
00099 #include "itkVnlRealToHalfHermitianForwardFFTImageFilter.hxx"
00100 #endif
00101 
00102 #endif
00103