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

itkHypersphereKernelMeanShiftModeSeeker.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkHypersphereKernelMeanShiftModeSeeker.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:45 $ 00007 Version: $Revision: 1.6 $ 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 __itkHypersphereKernelMeanShiftModeSeeker_h 00019 #define __itkHypersphereKernelMeanShiftModeSeeker_h 00020 00021 #include "itkMeanShiftModeSeekerBase.h" 00022 00023 #include "itkFixedArray.h" 00024 #include "itkNumericTraits.h" 00025 00026 namespace itk{ 00027 namespace Statistics{ 00028 00036 template< class TSample > 00037 class HypersphereKernelMeanShiftModeSeeker : 00038 public MeanShiftModeSeekerBase< TSample > 00039 { 00040 public: 00042 typedef HypersphereKernelMeanShiftModeSeeker Self; 00043 typedef MeanShiftModeSeekerBase< TSample > Superclass ; 00044 typedef SmartPointer<Self> Pointer; 00045 00047 itkTypeMacro(HypersphereKernelMeanShiftModeSeeker, 00048 MeanShiftModeSeekerBase); 00049 itkNewMacro(Self) ; 00050 00052 typedef typename Superclass::MeasurementVectorType MeasurementVectorType ; 00053 typedef typename Superclass::SearchResultVectorType SearchResultVectorType ; 00054 typedef typename Superclass::MeasurementType MeasurementType ; 00055 00057 itkStaticConstMacro( MeasurementVectorSize, unsigned int, 00058 MeasurementVectorType::Length ) ; 00059 00061 typedef double RealMeasurementType ; 00062 00065 typedef FixedArray< RealMeasurementType, 00066 itkGetStaticConstMacro( MeasurementVectorSize ) > 00067 MeasurementVectorSumType ; 00068 00070 void SetSearchRadius(double radius) ; 00071 00073 double GetSearchRadius() 00074 { return m_SearchRadius ; } 00075 00077 MeasurementVectorType Evolve(MeasurementVectorType instance) ; 00078 00079 protected: 00080 HypersphereKernelMeanShiftModeSeeker() ; 00081 virtual ~HypersphereKernelMeanShiftModeSeeker() ; 00082 void PrintSelf(std::ostream& os, Indent indent) const; 00083 00086 inline bool ComputeMode(MeasurementVectorType queryPoint, 00087 MeasurementVectorType& newPoint) ; 00088 00089 private: 00091 double m_SearchRadius ; 00092 00094 MeasurementVectorSumType m_TempVectorSum ; 00095 00097 MeasurementVectorType m_TempVector ; 00098 } ; // end of class 00099 00100 } // end of namespace Statistics 00101 } // end of namespace itk 00102 00103 #ifndef ITK_MANUAL_INSTANTIATION 00104 #include "itkHypersphereKernelMeanShiftModeSeeker.txx" 00105 #endif 00106 00107 #endif 00108

Generated at Sat Mar 31 02:20:49 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000