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

itkHardConnectedComponentImageFilter.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkHardConnectedComponentImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:28:49 $ 00007 Version: $Revision: 1.5 $ 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 __itkHardConnectedComponentImageFilter_h 00018 #define __itkHardConnectedComponentImageFilter_h 00019 00020 #include "itkImageToImageFilter.h" 00021 #include "itkImage.h" 00022 00023 namespace itk 00024 { 00050 template <class TInputImage, class TOutputImage> 00051 class ITK_EXPORT HardConnectedComponentImageFilter : 00052 public ImageToImageFilter< TInputImage, TOutputImage > 00053 { 00054 public: 00058 typedef HardConnectedComponentImageFilter Self; 00059 typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass; 00060 00065 typedef typename TOutputImage::PixelType OutputPixelType; 00066 typedef typename TOutputImage::InternalPixelType OutputInternalPixelType; 00067 typedef typename TInputImage::PixelType InputPixelType; 00068 typedef typename TInputImage::InternalPixelType InputInternalPixelType; 00069 itkStaticConstMacro(ImageDimension, unsigned int, 00070 TOutputImage::ImageDimension); 00071 00075 typedef TInputImage InputImageType; 00076 typedef TOutputImage OutputImageType; 00077 typedef typename TInputImage::IndexType IndexType; 00078 typedef typename TInputImage::SizeType SizeType; 00079 typedef typename TOutputImage::RegionType RegionType; 00080 typedef std::list<IndexType> ListType; 00084 typedef SmartPointer<Self> Pointer; 00085 typedef SmartPointer<const Self> ConstPointer; 00086 00090 itkTypeMacro(HardConnectedComponentImageFilter, ImageToImageFilter); 00091 00095 itkNewMacro(Self); 00096 00098 void SetObjectSeed( const IndexType &seed) 00099 {m_Seeds.push_front(seed);} 00100 00101 protected: 00102 HardConnectedComponentImageFilter() {} 00103 virtual ~HardConnectedComponentImageFilter() {} 00104 HardConnectedComponentImageFilter(const Self&) {} 00105 00109 void GenerateData(); 00110 void PrintSelf(std::ostream& os, Indent indent) const 00111 { Superclass::PrintSelf(os,indent); } 00112 00113 00114 private: 00115 ListType m_Seeds; 00116 }; 00117 00118 } // end namespace itk 00119 00120 #ifndef ITK_MANUAL_INSTANTIATION 00121 #include "itkHardConnectedComponentImageFilter.txx" 00122 #endif 00123 00124 #endif

Generated at Sun Apr 1 02:32:08 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000