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

itkIsolatedConnectedImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkIsolatedConnectedImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/09/30 15:24:40 $
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 __itkIsolatedConnectedImageFilter_h
00018 #define __itkIsolatedConnectedImageFilter_h
00019 
00020 #include "itkImage.h"
00021 #include "itkImageToImageFilter.h"
00022 
00023 namespace itk{
00024 
00037 template <class TInputImage, class TOutputImage>
00038 class IsolatedConnectedImageFilter:
00039   public ImageToImageFilter<TInputImage,TOutputImage>
00040 {
00041 public:
00043   typedef IsolatedConnectedImageFilter Self;
00044   typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass;
00045   typedef SmartPointer<Self> Pointer;
00046   typedef SmartPointer<const Self> ConstPointer;
00047 
00049   itkNewMacro(Self);
00050 
00052   itkTypeMacro(IsolatedConnectedImageFilter,
00053                ImageToImageFilter);
00054 
00055   typedef TInputImage InputImageType;
00056   typedef typename InputImageType::Pointer InputImagePointer;
00057   typedef typename InputImageType::ConstPointer InputImageConstPointer;
00058   typedef typename InputImageType::RegionType InputImageRegionType; 
00059   typedef typename InputImageType::PixelType InputImagePixelType; 
00060   typedef typename InputImageType::IndexType IndexType;
00061   typedef typename InputImageType::SizeType SizeType;
00062   
00063   typedef TOutputImage OutputImageType;
00064   typedef typename OutputImageType::Pointer OutputImagePointer;
00065   typedef typename OutputImageType::RegionType OutputImageRegionType; 
00066   typedef typename OutputImageType::PixelType OutputImagePixelType; 
00067   
00068   void PrintSelf ( std::ostream& os, Indent indent ) const;
00069 
00073   itkSetMacro(Seed1, IndexType);
00074 
00076   itkSetMacro(Seed2, IndexType);
00077 
00079   itkSetMacro(Lower, InputImagePixelType);
00080   itkGetMacro(Lower, InputImagePixelType);
00081 
00085   itkSetMacro(ReplaceValue, OutputImagePixelType);
00086   itkGetMacro(ReplaceValue, OutputImagePixelType);
00087 
00089   itkGetMacro(IsolatedValue, OutputImagePixelType);
00090 
00091 protected:
00092   IsolatedConnectedImageFilter();
00093   ~IsolatedConnectedImageFilter(){};
00094   IndexType m_Seed1;
00095   IndexType m_Seed2;
00096   InputImagePixelType m_Lower;
00097   OutputImagePixelType m_ReplaceValue;
00098   InputImagePixelType m_IsolatedValue;
00099 
00100   // Override since the filter needs all the data for the algorithm
00101   void GenerateInputRequestedRegion();
00102 
00103   // Override since the filter produces the entire dataset
00104   void EnlargeOutputRequestedRegion(DataObject *output);
00105 
00106   void GenerateData();
00107   
00108 private:
00109   IsolatedConnectedImageFilter(const Self&); //purposely not implemented
00110   void operator=(const Self&); //purposely not implemented
00111 
00112 };
00113 
00114 } // end namespace itk
00115 
00116 #ifndef ITK_MANUAL_INSTANTIATION
00117 #include "itkIsolatedConnectedImageFilter.txx"
00118 #endif
00119 
00120 #endif

Generated at Wed Mar 12 01:13:03 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000