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: 2003/09/10 14:28:51 $ 00007 Version: $Revision: 1.11 $ 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 __itkIsolatedConnectedImageFilter_h 00018 #define __itkIsolatedConnectedImageFilter_h 00019 00020 #include "itkImage.h" 00021 #include "itkImageToImageFilter.h" 00022 00023 namespace itk{ 00024 00038 template <class TInputImage, class TOutputImage> 00039 class ITK_EXPORT IsolatedConnectedImageFilter: 00040 public ImageToImageFilter<TInputImage,TOutputImage> 00041 { 00042 public: 00044 typedef IsolatedConnectedImageFilter Self; 00045 typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass; 00046 typedef SmartPointer<Self> Pointer; 00047 typedef SmartPointer<const Self> ConstPointer; 00048 00050 itkNewMacro(Self); 00051 00053 itkTypeMacro(IsolatedConnectedImageFilter, 00054 ImageToImageFilter); 00055 00056 typedef TInputImage InputImageType; 00057 typedef typename InputImageType::Pointer InputImagePointer; 00058 typedef typename InputImageType::ConstPointer InputImageConstPointer; 00059 typedef typename InputImageType::RegionType InputImageRegionType; 00060 typedef typename InputImageType::PixelType InputImagePixelType; 00061 typedef typename InputImageType::IndexType IndexType; 00062 typedef typename InputImageType::SizeType SizeType; 00063 00064 typedef TOutputImage OutputImageType; 00065 typedef typename OutputImageType::Pointer OutputImagePointer; 00066 typedef typename OutputImageType::RegionType OutputImageRegionType; 00067 typedef typename OutputImageType::PixelType OutputImagePixelType; 00068 00069 void PrintSelf ( std::ostream& os, Indent indent ) const; 00070 00074 itkSetMacro(Seed1, IndexType); 00075 00077 itkSetMacro(Seed2, IndexType); 00078 00080 itkSetMacro(Lower, InputImagePixelType); 00081 itkGetMacro(Lower, InputImagePixelType); 00082 00084 itkSetMacro(IsolatedValueTolerance, InputImagePixelType); 00085 itkGetMacro(IsolatedValueTolerance, InputImagePixelType); 00086 00088 itkSetMacro(UpperValueLimit, InputImagePixelType); 00089 itkGetMacro(UpperValueLimit, InputImagePixelType); 00090 00091 00095 itkSetMacro(ReplaceValue, OutputImagePixelType); 00096 itkGetMacro(ReplaceValue, OutputImagePixelType); 00097 00099 itkGetMacro(IsolatedValue, InputImagePixelType); 00100 00101 protected: 00102 IsolatedConnectedImageFilter(); 00103 ~IsolatedConnectedImageFilter(){}; 00104 IndexType m_Seed1; 00105 IndexType m_Seed2; 00106 InputImagePixelType m_Lower; 00107 OutputImagePixelType m_ReplaceValue; 00108 InputImagePixelType m_IsolatedValue; 00109 InputImagePixelType m_IsolatedValueTolerance; 00110 InputImagePixelType m_UpperValueLimit; 00111 00112 // Override since the filter needs all the data for the algorithm 00113 void GenerateInputRequestedRegion(); 00114 00115 // Override since the filter produces the entire dataset 00116 void EnlargeOutputRequestedRegion(DataObject *output); 00117 00118 void GenerateData(); 00119 00120 private: 00121 IsolatedConnectedImageFilter(const Self&); //purposely not implemented 00122 void operator=(const Self&); //purposely not implemented 00123 00124 }; 00125 00126 } // end namespace itk 00127 00128 #ifndef ITK_MANUAL_INSTANTIATION 00129 #include "itkIsolatedConnectedImageFilter.txx" 00130 #endif 00131 00132 #endif

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