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

itkSampleMeanShiftClusteringFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkSampleMeanShiftClusteringFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/09/10 14:29:47 $
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 
00018 #ifndef __itkSampleMeanShiftClusteringFilter_h
00019 #define __itkSampleMeanShiftClusteringFilter_h
00020 
00021 #include <vector>
00022 #include "itkSampleAlgorithmBase.h"
00023 
00024 namespace itk{ 
00025 namespace Statistics{
00026   
00040 template< class TSample >
00041 class SampleMeanShiftClusteringFilter :
00042     public SampleAlgorithmBase< TSample >
00043 {
00044 public:
00046   typedef SampleMeanShiftClusteringFilter Self;
00047   typedef SampleAlgorithmBase< TSample > Superclass ;
00048   typedef SmartPointer<Self> Pointer;
00049 
00051   itkTypeMacro(SampleMeanShiftClusteringFilter, 
00052                SampleAlgorithmBase);
00053   itkNewMacro(Self) ;
00054   
00055   typedef typename TSample::MeasurementVectorType MeasurementVectorType ;
00056   typedef typename TSample::MeasurementType MeasurementType ;
00057   typedef typename TSample::InstanceIdentifier InstanceIdentifier ;
00058 
00059   typedef std::vector< InstanceIdentifier > SearchResultVectorType ;
00060   typedef std::vector< int > ClusterLabelsType ;
00061 
00062   itkSetMacro(Threshold, double) ;
00063   itkGetMacro(Threshold, double) ;
00064   itkSetMacro(MinimumClusterSize, unsigned long) ;
00065   itkGetMacro(MinimumClusterSize, unsigned long) ;
00066 
00067   ClusterLabelsType& GetOutput()
00068   { return m_Output ; }
00069 
00070 protected:
00071   SampleMeanShiftClusteringFilter() ;
00072   virtual ~SampleMeanShiftClusteringFilter() ;
00073   void PrintSelf(std::ostream& os, Indent indent) const;
00074 
00075   void GenerateData() ;
00076 
00077 private:
00078   double m_Threshold ;
00079   ClusterLabelsType m_Output ;
00080   MeasurementVectorType m_TempQueryPoint ;
00081   SearchResultVectorType m_TempSearchResult ;
00082   unsigned long m_MinimumClusterSize ;
00083 } ; // end of class
00084     
00085 } // end of namespace Statistics 
00086 } // end of namespace itk 
00087 
00088 #ifndef ITK_MANUAL_INSTANTIATION
00089 #include "itkSampleMeanShiftClusteringFilter.txx"
00090 #endif
00091 
00092 #endif
00093 

Generated at Tue Sep 16 11:32:08 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000