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