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

itkVoronoiSegmentationImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkVoronoiSegmentationImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/10/21 20:55:45 $
00007   Version:   $Revision: 1.25 $
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 
00018 #ifndef _itkVoronoiSegmentationImageFilter_h
00019 #define _itkVoronoiSegmentationImageFilter_h
00020 
00021 #include "itkImageToImageFilter.h"
00022 #include "itkVoronoiSegmentationImageFilterBase.h"
00023 #include "itkImage.h"
00024 
00025 namespace itk
00026 {
00027 
00054 template <class TInputImage, class TOutputImage>
00055 class VoronoiSegmentationImageFilter:
00056 public VoronoiSegmentationImageFilterBase<TInputImage,TOutputImage>
00057 {
00058 public:
00060   typedef VoronoiSegmentationImageFilter       Self;
00061   typedef VoronoiSegmentationImageFilterBase<TInputImage,TOutputImage> 
00062           Superclass;
00063   typedef SmartPointer <Self>  Pointer;
00064   typedef SmartPointer<const Self>  ConstPointer;
00065 
00067   itkNewMacro(Self);
00068 
00070   itkTypeMacro(VoronoiSegmentationImageFilter,
00071                VoronoiSegmentationImageFilterBase);
00072 
00074   typedef typename Superclass::BinaryObjectImage BinaryObjectImage;
00075   typedef typename Superclass::IndexList IndexList;
00076   typedef typename Superclass::IndexType IndexType;
00077   typedef typename Superclass::RegionType RegionType;
00078   typedef typename Superclass::InputImageType InputImageType;
00079 
00081   itkSetMacro(Mean, double);
00082   itkGetMacro(Mean, double);
00083 
00086   itkSetMacro(STD, double);
00087   itkGetMacro(STD, double);
00088 
00090   itkSetMacro(MeanTolerance, double);
00091   itkGetMacro(MeanTolerance, double);
00092 
00094   itkSetMacro(STDTolerance, double);
00095 
00097   itkGetMacro(STDTolerance, double);
00098   
00100   void SetMeanPercentError(double x);
00101   itkGetMacro(MeanPercentError, double);
00102 
00104   itkGetMacro(STDPercentError, double);
00105   void SetSTDPercentError(double x);
00106 
00109   void TakeAPrior(BinaryObjectImage* aprior);
00110   
00111   
00112 protected:
00113   VoronoiSegmentationImageFilter();
00114   ~VoronoiSegmentationImageFilter();
00115 
00116 private:
00117   double m_Mean;
00118   double m_STD;
00119   double m_MeanTolerance;
00120   double m_STDTolerance;
00121   double m_MeanPercentError;
00122   double m_STDPercentError;
00123 
00124   virtual bool TestHomogeneity(IndexList Plist);
00125 
00126 private:
00127   VoronoiSegmentationImageFilter(const Self&); //purposely not implemented
00128   void operator=(const Self&); //purposely not implemented
00129 };
00130 
00131 }//end namespace
00132 
00133 
00134 #ifndef ITK_MANUAL_INSTANTIATION
00135 #include "itkVoronoiSegmentationImageFilter.txx"
00136 #endif
00137 
00138 #endif
00139 
00140 
00141 
00142 

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