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/12/09 16:53:08 $ 00007 Version: $Revision: 1.7 $ 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 typedef SmartPointer<const Self> ConstPointer; 00046 00048 itkTypeMacro(HypersphereKernelMeanShiftModeSeeker, 00049 MeanShiftModeSeekerBase); 00050 itkNewMacro(Self) ; 00051 00053 typedef typename Superclass::MeasurementVectorType MeasurementVectorType ; 00054 typedef typename Superclass::SearchResultVectorType SearchResultVectorType ; 00055 typedef typename Superclass::MeasurementType MeasurementType ; 00056 00058 itkStaticConstMacro( MeasurementVectorSize, unsigned int, 00059 MeasurementVectorType::Length ) ; 00060 00062 typedef double RealMeasurementType ; 00063 00066 typedef FixedArray< RealMeasurementType, 00067 itkGetStaticConstMacro( MeasurementVectorSize ) > 00068 MeasurementVectorSumType ; 00069 00071 void SetSearchRadius(double radius) ; 00072 00074 double GetSearchRadius() 00075 { return m_SearchRadius ; } 00076 00078 MeasurementVectorType Evolve(MeasurementVectorType instance) ; 00079 00080 protected: 00081 HypersphereKernelMeanShiftModeSeeker() ; 00082 virtual ~HypersphereKernelMeanShiftModeSeeker() ; 00083 void PrintSelf(std::ostream& os, Indent indent) const; 00084 00087 inline bool ComputeMode(MeasurementVectorType queryPoint, 00088 MeasurementVectorType& newPoint) ; 00089 00090 private: 00092 double m_SearchRadius ; 00093 00095 MeasurementVectorSumType m_TempVectorSum ; 00096 00098 MeasurementVectorType m_TempVector ; 00099 } ; // end of class 00100 00101 } // end of namespace Statistics 00102 } // end of namespace itk 00103 00104 #ifndef ITK_MANUAL_INSTANTIATION 00105 #include "itkHypersphereKernelMeanShiftModeSeeker.txx" 00106 #endif 00107 00108 #endif 00109

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