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: 2002/09/30 15:24:40 $
00007   Version:   $Revision: 1.13 $
00008 
00009   Copyright (c) 2002 Insight 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 
00131   typedef typename Superclass::InputImageType InputImageType;
00132   typedef typename Superclass::OutputImageType OutputImageType;
00133   typedef typename Superclass::InputImagePointer InputImagePointer;
00134   typedef typename Superclass::OutputImagePointer OutputImagePointer;
00135   typedef typename Superclass::InputImageConstPointer InputImageConstPointer;
00136 
00143   void SetNumberOfLevels(unsigned int num);
00144 
00146   itkGetMacro(NumberOfLevels, unsigned int);
00147 
00154   void SetSchedule( const ScheduleType& schedule );
00155 
00157   itkGetConstReferenceMacro(Schedule, ScheduleType);
00158 
00163   void SetStartingShrinkFactors( unsigned int factor );
00164   void SetStartingShrinkFactors( unsigned int* factors );
00165 
00167   const unsigned int * GetStartingShrinkFactors() const;
00168 
00172   static bool IsScheduleDownwardDivisible( const ScheduleType& schedule );
00173 
00180   virtual void GenerateOutputInformation();
00181 
00186   virtual void GenerateOutputRequestedRegion(DataObject *output);
00187 
00194   virtual void GenerateInputRequestedRegion();
00195 
00196 protected:
00197   MultiResolutionPyramidImageFilter();
00198   ~MultiResolutionPyramidImageFilter() {};
00199   void PrintSelf(std::ostream&os, Indent indent) const;
00200 
00202   void GenerateData();
00203 
00204   double          m_MaximumError; 
00205   unsigned int    m_NumberOfLevels;
00206   ScheduleType    m_Schedule;
00207 
00208 private:
00209   MultiResolutionPyramidImageFilter(const Self&); //purposely not implemented
00210   void operator=(const Self&); //purposely not implemented
00211   
00212 };
00213 
00214 
00215 } // namespace itk
00216 
00217 #ifndef ITK_MANUAL_INSTANTIATION
00218 #include "itkMultiResolutionPyramidImageFilter.txx"
00219 #endif
00220 
00221 #endif
00222 
00223 

Generated at Fri May 21 01:15:06 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000