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

itkTobogganImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkTobogganImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006/04/03 15:07:52 $
00007   Version:   $Revision: 1.10 $
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 __itkTobogganImageFilter_h
00018 #define __itkTobogganImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 #include "itkConstNeighborhoodIterator.h"
00022 
00023 namespace itk {
00024 
00036 template<class TInputImage>
00037 class ITK_EXPORT TobogganImageFilter : 
00038     public ImageToImageFilter<
00039   TInputImage,
00040   Image<unsigned long, ::itk::GetImageDimension<TInputImage>::ImageDimension> >
00041 {
00042 public:
00044   typedef TobogganImageFilter Self;
00045 
00047   typedef TInputImage InputImageType;
00048 
00050   itkStaticConstMacro(NDimensions, unsigned int, TInputImage::ImageDimension);
00051 
00053   typedef Image<unsigned long, itkGetStaticConstMacro(NDimensions)> OutputImageType;
00054 
00056   typedef typename OutputImageType::PixelType OutputImagePixelType;
00057 
00059   typedef typename InputImageType::PixelType InputImagePixelType;
00060 
00062   enum {ImageDimension = InputImageType::ImageDimension };
00063 
00065   typedef typename InputImageType::RegionType RegionType;
00066   typedef typename InputImageType::SizeType   SizeType;
00067   typedef typename InputImageType::IndexType  IndexType;
00068   typedef typename InputImageType::Pointer    InputImagePointer;
00069   typedef typename InputImageType::ConstPointer    InputImageConstPointer;
00070   typedef typename OutputImageType::Pointer   OutputImagePointer;
00071 
00073   typedef ImageToImageFilter< InputImageType, OutputImageType > Superclass;
00074 
00076   typedef typename InputImageType::PixelType ScalarType;
00077 
00079   typedef SmartPointer<Self> Pointer;
00080 
00082   itkTypeMacro(TobogganImageFilter, ImageToImageFilter);
00083 
00085   itkNewMacro(Self);
00086 
00088   void GenerateData();
00089   void GenerateInputRequestedRegion();
00090   void EnlargeOutputRequestedRegion ( DataObject* );
00091 
00093   typedef ConstNeighborhoodIterator<TInputImage> 
00094   NeighborhoodIteratorType ;
00095 
00096 #ifdef ITK_USE_CONCEPT_CHECKING
00097 
00098   itkConceptMacro(LessThanComparableCheck,
00099                   (Concept::LessThanComparable<InputImagePixelType>));
00100   itkConceptMacro(OStreamWritableCheck,
00101                   (Concept::OStreamWritable<InputImagePixelType>));
00102 
00104 #endif
00105 
00106 protected:
00107   TobogganImageFilter();
00108   ~TobogganImageFilter() {};
00109   void PrintSelf(std::ostream& os, Indent indent) const;
00110   
00111 private:
00112   TobogganImageFilter(const Self&); //purposely not implemented
00113   void operator=(const Self&); //purposely not implemented
00114 
00115 } ; // end of class
00116 
00117 } // end namespace itk
00118   
00119 #ifndef ITK_MANUAL_INSTANTIATION
00120 #include "itkTobogganImageFilter.txx"
00121 #endif
00122 
00123 #endif
00124 
00125 
00126 

Generated at Tue Jul 29 22:56:48 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000