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: 2009-03-04 15:23:50 $
00007   Version:   $Revision: 1.9 $
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 
00042 template< class TSample >
00043 class HypersphereKernelMeanShiftModeSeeker :
00044     public MeanShiftModeSeekerBase< TSample >
00045 {
00046 public:
00048   typedef HypersphereKernelMeanShiftModeSeeker Self;
00049   typedef MeanShiftModeSeekerBase< TSample >   Superclass;
00050   typedef SmartPointer<Self>                   Pointer;
00051   typedef SmartPointer<const Self>             ConstPointer;
00052 
00054   itkTypeMacro(HypersphereKernelMeanShiftModeSeeker, 
00055                MeanShiftModeSeekerBase);
00056   itkNewMacro(Self);
00058 
00060   typedef typename Superclass::MeasurementVectorType  MeasurementVectorType;
00061   typedef typename Superclass::SearchResultVectorType SearchResultVectorType;
00062   typedef typename Superclass::MeasurementType        MeasurementType;
00063 
00065   typedef double RealMeasurementType;
00066 
00069   typedef Array< RealMeasurementType > MeasurementVectorSumType;
00070 
00072   void SetSearchRadius(double radius);
00073 
00075   double GetSearchRadius()
00076     { return m_SearchRadius; }
00077 
00079   MeasurementVectorType Evolve(MeasurementVectorType instance);
00080 
00081 protected:
00082   HypersphereKernelMeanShiftModeSeeker();
00083   virtual ~HypersphereKernelMeanShiftModeSeeker();
00084   void PrintSelf(std::ostream& os, Indent indent) const;
00085 
00088   inline bool ComputeMode(MeasurementVectorType queryPoint,
00089                           MeasurementVectorType& newPoint);
00090 
00091 private:
00093   double m_SearchRadius;
00094 
00096   MeasurementVectorSumType m_TempVectorSum;
00097 
00099   MeasurementVectorType m_TempVector;
00100 }; // end of class
00101 
00102 } // end of namespace Statistics 
00103 } // end of namespace itk 
00104 
00105 #ifndef ITK_MANUAL_INSTANTIATION
00106 #include "itkHypersphereKernelMeanShiftModeSeeker.txx"
00107 #endif
00108 
00109 #endif
00110 

Generated at Tue Sep 15 03:16:09 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000