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: 2002/12/17 17:50:35 $
00007   Version:   $Revision: 1.5 $
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 __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 OutputImageType::Pointer   OutputImagePointer;
00070   
00072   typedef ImageToImageFilter< InputImageType, OutputImageType > Superclass;
00073 
00075   typedef typename InputImageType::PixelType ScalarType;
00076 
00078   typedef SmartPointer<Self> Pointer;
00079 
00081   itkTypeMacro(TobogganImageFilter, ImageToImageFilter);
00082   
00084   itkNewMacro(Self);
00085 
00087   void GenerateData();
00088   void GenerateInputRequestedRegion();
00089   void EnlargeOutputRequestedRegion ( DataObject* );
00091   typedef ConstNeighborhoodIterator<TInputImage> 
00092     NeighborhoodIteratorType ;
00093 
00094 protected:
00095   TobogganImageFilter();
00096   ~TobogganImageFilter() {};
00097   void PrintSelf(std::ostream& os, Indent indent) const;
00098   
00099 private:
00100   TobogganImageFilter(const Self&); //purposely not implemented
00101   void operator=(const Self&); //purposely not implemented
00102 
00103 } ; // end of class
00104 
00105 } // end namespace itk
00106   
00107 #ifndef ITK_MANUAL_INSTANTIATION
00108 #include "itkTobogganImageFilter.txx"
00109 #endif
00110 
00111 #endif
00112 
00113 

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