itkMultiResolutionPyramidImageFilter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkMultiResolutionPyramidImageFilter_h
00018 #define __itkMultiResolutionPyramidImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021 #include "itkArray2D.h"
00022
00023 namespace itk
00024 {
00025
00103 template <
00104 class TInputImage,
00105 class TOutputImage
00106 >
00107 class ITK_EXPORT MultiResolutionPyramidImageFilter :
00108 public ImageToImageFilter< TInputImage, TOutputImage >
00109 {
00110 public:
00112 typedef MultiResolutionPyramidImageFilter Self;
00113 typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass;
00114 typedef SmartPointer<Self> Pointer;
00115 typedef SmartPointer<const Self> ConstPointer;
00116
00118 itkNewMacro(Self);
00119
00121 itkTypeMacro(MultiResolutionPyramidImageFilter, ImageToImageFilter);
00122
00124 typedef Array2D<unsigned int> ScheduleType;
00125
00127 itkStaticConstMacro(ImageDimension, unsigned int,
00128 TInputImage::ImageDimension);
00129 itkStaticConstMacro(OutputImageDimension, unsigned int,
00130 TOutputImage::ImageDimension);
00132
00134 typedef typename Superclass::InputImageType InputImageType;
00135 typedef typename Superclass::OutputImageType OutputImageType;
00136 typedef typename Superclass::InputImagePointer InputImagePointer;
00137 typedef typename Superclass::OutputImagePointer OutputImagePointer;
00138 typedef typename Superclass::InputImageConstPointer InputImageConstPointer;
00139
00146 void SetNumberOfLevels(unsigned int num);
00147
00149 itkGetMacro(NumberOfLevels, unsigned int);
00150
00157 void SetSchedule( const ScheduleType& schedule );
00158
00160 itkGetConstReferenceMacro(Schedule, ScheduleType);
00161
00166 void SetStartingShrinkFactors( unsigned int factor );
00167 void SetStartingShrinkFactors( unsigned int* factors );
00169
00171 const unsigned int * GetStartingShrinkFactors() const;
00172
00176 static bool IsScheduleDownwardDivisible( const ScheduleType& schedule );
00177
00184 virtual void GenerateOutputInformation();
00185
00190 virtual void GenerateOutputRequestedRegion(DataObject *output);
00192
00199 virtual void GenerateInputRequestedRegion();
00200
00201 itkSetMacro(MaximumError,double);
00202 itkGetConstReferenceMacro(MaximumError,double);
00203
00204 #ifdef ITK_USE_CONCEPT_CHECKING
00205
00206 itkConceptMacro(SameDimensionCheck,
00207 (Concept::SameDimension<ImageDimension, OutputImageDimension>));
00208 itkConceptMacro(OutputHasNumericTraitsCheck,
00209 (Concept::HasNumericTraits<typename TOutputImage::PixelType>));
00210
00212 #endif
00213 protected:
00214 MultiResolutionPyramidImageFilter();
00215 ~MultiResolutionPyramidImageFilter() {};
00216 void PrintSelf(std::ostream&os, Indent indent) const;
00218
00220 void GenerateData();
00221
00222 double m_MaximumError;
00223 unsigned int m_NumberOfLevels;
00224 ScheduleType m_Schedule;
00225
00226 private:
00227 MultiResolutionPyramidImageFilter(const Self&);
00228 void operator=(const Self&);
00229
00230 };
00231
00232
00233 }
00234
00235 #ifndef ITK_MANUAL_INSTANTIATION
00236 #include "itkMultiResolutionPyramidImageFilter.txx"
00237 #endif
00238
00239 #endif
00240