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

itkConnectedComponentImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkConnectedComponentImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/09/10 14:28:45 $
00007   Version:   $Revision: 1.3 $
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 __itkConnectedComponentImageFilter_h
00018 #define __itkConnectedComponentImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 #include "itkImage.h"
00022 
00023 namespace itk
00024 {
00025 
00042 template <class TInputImage, class TOutputImage>
00043 class ITK_EXPORT ConnectedComponentImageFilter : 
00044     public ImageToImageFilter< TInputImage, TOutputImage > 
00045 {
00046 public:
00050   typedef ConnectedComponentImageFilter Self;
00051   typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00052 
00056   typedef typename Superclass::InputImagePointer InputImagePointer;
00057 
00062   typedef typename TOutputImage::PixelType OutputPixelType;
00063   typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
00064   typedef typename TInputImage::PixelType InputPixelType;
00065   typedef typename TInputImage::InternalPixelType InputInternalPixelType;
00066   itkStaticConstMacro(ImageDimension, unsigned int,
00067                       TOutputImage::ImageDimension);
00068   
00072   typedef TInputImage  InputImageType;
00073   typedef TOutputImage OutputImageType;
00074   typedef   typename TInputImage::IndexType       IndexType;
00075   typedef   typename TInputImage::SizeType        SizeType;
00076   typedef   typename TOutputImage::RegionType     RegionType;
00077   typedef   std::list<IndexType>                  ListType;
00078 
00082   typedef SmartPointer<Self> Pointer;
00083   typedef SmartPointer<const Self>  ConstPointer;
00084   
00088   itkTypeMacro(ConnectedComponentImageFilter, ImageToImageFilter);
00089   
00093   itkNewMacro(Self);
00094 
00095 
00096 protected:
00097   ConnectedComponentImageFilter() {}
00098   virtual ~ConnectedComponentImageFilter() {}
00099   ConnectedComponentImageFilter(const Self&) {}
00100 
00104   void GenerateData();
00105 
00109   void GenerateInputRequestedRegion();
00110 
00115   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00116   
00117 private:
00118 
00119 };
00120   
00121 } // end namespace itk
00122 
00123 #ifndef ITK_MANUAL_INSTANTIATION
00124 #include "itkConnectedComponentImageFilter.txx"
00125 #endif
00126 
00127 #endif

Generated at Sun Jan 25 13:19:30 2004 for ITK by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-2000