Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkMultiResolutionPyramidImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMultiResolutionPyramidImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006/04/05 13:59:36 $
00007   Version:   $Revision: 1.18 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
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&); //purposely not implemented
00228   void operator=(const Self&); //purposely not implemented
00229   
00230 };
00231 
00232 
00233 } // namespace itk
00234 
00235 #ifndef ITK_MANUAL_INSTANTIATION
00236 #include "itkMultiResolutionPyramidImageFilter.txx"
00237 #endif
00238 
00239 #endif
00240 
00241 
00242 

Generated at Wed Nov 5 23:01:44 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000