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/12/09 16:53:08 $ 00007 Version: $Revision: 1.4 $ 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 typedef SmartPointer<const Self> ConstPointer; 00050 00052 itkTypeMacro(SampleMeanShiftClusteringFilter, 00053 SampleAlgorithmBase); 00054 itkNewMacro(Self) ; 00055 00056 typedef typename TSample::MeasurementVectorType MeasurementVectorType ; 00057 typedef typename TSample::MeasurementType MeasurementType ; 00058 typedef typename TSample::InstanceIdentifier InstanceIdentifier ; 00059 00060 typedef std::vector< InstanceIdentifier > SearchResultVectorType ; 00061 typedef std::vector< int > ClusterLabelsType ; 00062 00063 itkSetMacro(Threshold, double) ; 00064 itkGetMacro(Threshold, double) ; 00065 itkSetMacro(MinimumClusterSize, unsigned long) ; 00066 itkGetMacro(MinimumClusterSize, unsigned long) ; 00067 00068 ClusterLabelsType& GetOutput() 00069 { return m_Output ; } 00070 00071 protected: 00072 SampleMeanShiftClusteringFilter() ; 00073 virtual ~SampleMeanShiftClusteringFilter() ; 00074 void PrintSelf(std::ostream& os, Indent indent) const; 00075 00076 void GenerateData() ; 00077 00078 private: 00079 double m_Threshold ; 00080 ClusterLabelsType m_Output ; 00081 MeasurementVectorType m_TempQueryPoint ; 00082 SearchResultVectorType m_TempSearchResult ; 00083 unsigned long m_MinimumClusterSize ; 00084 } ; // end of class 00085 00086 } // end of namespace Statistics 00087 } // end of namespace itk 00088 00089 #ifndef ITK_MANUAL_INSTANTIATION 00090 #include "itkSampleMeanShiftClusteringFilter.txx" 00091 #endif 00092 00093 #endif 00094

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