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

Generated at Tue Sep 15 04:42:19 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000