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

itkVotingBinaryIterativeHoleFillingImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkVotingBinaryIterativeHoleFillingImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2004/12/16 17:26:31 $
00007   Version:   $Revision: 1.1 $
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 __itkVotingBinaryIterativeHoleFillingImageFilter_h
00018 #define __itkVotingBinaryIterativeHoleFillingImageFilter_h
00019 
00020 #include "itkVotingBinaryHoleFillingImageFilter.h"
00021 
00022 namespace itk
00023 {
00052 template <class TImage >
00053 class ITK_EXPORT VotingBinaryIterativeHoleFillingImageFilter :
00054     public ImageToImageFilter< TImage, TImage >
00055 {
00056 public:
00057 
00059   typedef TImage InputImageType;
00060   typedef TImage OutputImageType;
00061 
00063   typedef VotingBinaryIterativeHoleFillingImageFilter Self;
00064   typedef ImageToImageFilter< InputImageType, OutputImageType> Superclass;
00065   typedef SmartPointer<Self> Pointer;
00066   typedef SmartPointer<const Self>  ConstPointer;
00067 
00069   itkNewMacro(Self);
00070 
00072   itkTypeMacro(VotingBinaryIterativeHoleFillingImageFilter, ImageToImageFilter);
00073   
00075   typedef VotingBinaryHoleFillingImageFilter< 
00076                                               InputImageType, 
00077                                               OutputImageType 
00078                                                       > VotingFilterType;
00079 
00081   typedef typename InputImageType::PixelType InputPixelType;
00082   typedef typename OutputImageType::PixelType OutputPixelType;
00083 
00084   typedef typename InputImageType::RegionType InputImageRegionType;
00085   typedef typename OutputImageType::RegionType OutputImageRegionType;
00086 
00087   typedef typename InputImageType::SizeType InputSizeType;
00088 
00089 
00093   itkGetConstReferenceMacro(MaximumNumberOfIterations, unsigned int);
00094   itkSetMacro(MaximumNumberOfIterations, unsigned int);
00095 
00099   itkGetConstReferenceMacro(CurrentNumberOfIterations, unsigned int);
00100   itkSetMacro(CurrentNumberOfIterations, unsigned int);
00101 
00102 
00104   itkSetMacro(Radius, InputSizeType);
00105 
00107   itkGetConstReferenceMacro(Radius, InputSizeType);
00108   
00111   itkSetMacro(BackgroundValue, InputPixelType);
00112   itkSetMacro(ForegroundValue, InputPixelType);
00113 
00116   itkGetConstReferenceMacro(BackgroundValue, InputPixelType);
00117   itkGetConstReferenceMacro(ForegroundValue, InputPixelType);
00118  
00119 
00126   itkGetConstReferenceMacro( MajorityThreshold, unsigned int );
00127   itkSetMacro( MajorityThreshold, unsigned int );
00128 
00129 
00131   itkGetConstReferenceMacro( NumberOfPixelsChanged, unsigned int );
00132 
00133 protected:
00134   VotingBinaryIterativeHoleFillingImageFilter();
00135   virtual ~VotingBinaryIterativeHoleFillingImageFilter() {}
00136   void PrintSelf(std::ostream& os, Indent indent) const;
00137 
00141   void GenerateData();
00142 
00143 
00144 private:
00145   VotingBinaryIterativeHoleFillingImageFilter(const Self&); //purposely not implemented
00146   void operator=(const Self&); //purposely not implemented
00147 
00148   InputSizeType      m_Radius;
00149 
00150   InputPixelType     m_ForegroundValue;
00151   InputPixelType     m_BackgroundValue;
00152 
00153   unsigned int m_MaximumNumberOfIterations;
00154   unsigned int m_CurrentNumberOfIterations;
00155   unsigned int m_MajorityThreshold;
00156   unsigned int m_NumberOfPixelsChanged;
00157 
00158 };
00159   
00160 } // end namespace itk
00161 
00162 #ifndef ITK_MANUAL_INSTANTIATION
00163 #include "itkVotingBinaryIterativeHoleFillingImageFilter.txx"
00164 #endif
00165 
00166 #endif

Generated at Thu May 25 00:16:32 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000