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

Numerics/Statistics/itkWeightedCentroidKdTreeGenerator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkWeightedCentroidKdTreeGenerator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-03-04 19:29:54 $
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 #ifndef __itkWeightedCentroidKdTreeGenerator_h
00018 #define __itkWeightedCentroidKdTreeGenerator_h
00019 
00020 #include <vector>
00021 
00022 #include "itkSample.h"
00023 #include "itkSubsample.h"
00024 #include "itkKdTree.h"
00025 #include "itkKdTreeGenerator.h"
00026 #include "itkStatisticsAlgorithm.h"
00027 
00028 namespace itk { 
00029 namespace Statistics {
00030 
00065 template < class TSample >
00066 class ITK_EXPORT WeightedCentroidKdTreeGenerator : 
00067     public KdTreeGenerator< TSample >
00068 {
00069 public:
00071   typedef WeightedCentroidKdTreeGenerator Self;
00072   typedef KdTreeGenerator< TSample >      Superclass;
00073   typedef SmartPointer<Self>              Pointer;
00074   typedef SmartPointer<const Self>        ConstPointer;
00075 
00077   itkTypeMacro(WeightedCentroidKdTreeGenerator, KdTreeGenerator);
00078 
00080   itkNewMacro(Self);
00081 
00083   typedef typename Superclass::MeasurementVectorType MeasurementVectorType;
00084   typedef typename Superclass::MeasurementType       MeasurementType;
00085   typedef typename Superclass::SubsampleType         SubsampleType;
00086   typedef typename Superclass::SubsamplePointer      SubsamplePointer;
00087   typedef typename Superclass::KdTreeType            KdTreeType;
00088   typedef typename Superclass::KdTreeNodeType        KdTreeNodeType;
00089 
00090 
00091 protected:
00093   WeightedCentroidKdTreeGenerator();
00094 
00096   virtual ~WeightedCentroidKdTreeGenerator() {}
00097 
00098   void PrintSelf(std::ostream& os, Indent indent) const;
00099 
00101   virtual KdTreeNodeType* GenerateNonterminalNode(unsigned int beginIndex,
00102                                                   unsigned int endIndex,
00103                                                   MeasurementVectorType 
00104                                                   &lowerBound,
00105                                                   MeasurementVectorType 
00106                                                   &upperBound,
00107                                                   unsigned int level);
00108 
00109 private:
00110   WeightedCentroidKdTreeGenerator(const Self&); //purposely not implemented
00111   void operator=(const Self&); //purposely not implemented
00112 
00113   MeasurementVectorType m_TempLowerBound;
00114   MeasurementVectorType m_TempUpperBound;
00115   MeasurementVectorType m_TempMean;
00116 }; // end of class
00117 
00118 } // end of namespace Statistics 
00119 } // end of namespace itk
00120 
00121 #ifndef ITK_MANUAL_INSTANTIATION
00122 #include "itkWeightedCentroidKdTreeGenerator.txx"
00123 #endif
00124 
00125 #endif
00126 

Generated at Mon Jul 12 2010 20:19:05 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000