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