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: 2003/09/10 14:28:58 $ 00007 Version: $Revision: 1.8 $ 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* ); 00092 typedef ConstNeighborhoodIterator<TInputImage> 00093 NeighborhoodIteratorType ; 00094 00095 protected: 00096 TobogganImageFilter(); 00097 ~TobogganImageFilter() {}; 00098 void PrintSelf(std::ostream& os, Indent indent) const; 00099 00100 private: 00101 TobogganImageFilter(const Self&); //purposely not implemented 00102 void operator=(const Self&); //purposely not implemented 00103 00104 } ; // end of class 00105 00106 } // end namespace itk 00107 00108 #ifndef ITK_MANUAL_INSTANTIATION 00109 #include "itkTobogganImageFilter.txx" 00110 #endif 00111 00112 #endif 00113 00114

Generated at Sat Mar 31 02:30:49 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000