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

itkEuclideanSquareDistanceMetric.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkEuclideanSquareDistanceMetric.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-02 05:43:55 $
00007   Version:   $Revision: 1.1 $
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 __itkEuclideanSquareDistanceMetric_h
00018 #define __itkEuclideanSquareDistanceMetric_h
00019 
00020 #include "itkNumericTraits.h"
00021 #include "itkDistanceMetric.h"
00022 #include "itkMeasurementVectorTraits.h"
00023 
00024 namespace itk  { 
00025 namespace Statistics  {
00026 
00034 template< class TVector >
00035 class ITK_EXPORT EuclideanSquareDistanceMetric : 
00036     public DistanceMetric< TVector >
00037 {
00038 public:
00040   typedef EuclideanSquareDistanceMetric       Self;
00041   typedef DistanceMetric< TVector >           Superclass;
00042   typedef SmartPointer< Self >                Pointer; 
00043   typedef SmartPointer<const Self>            ConstPointer;
00044 
00045   typedef typename Superclass::MeasurementVectorSizeType MeasurementVectorSizeType;
00046   typedef typename Superclass::MeasurementVectorType     MeasurementVectorType;
00047 
00049   itkTypeMacro(EuclideanSquareDistanceMetric, DistanceMetric);
00050 
00052   itkNewMacro(Self);
00053 
00055   double Evaluate(const MeasurementVectorType &x) const;
00056 
00058   double Evaluate(const MeasurementVectorType &x1, const MeasurementVectorType &x2) const;
00059 
00060 protected:
00061   EuclideanSquareDistanceMetric() {}
00062   virtual ~EuclideanSquareDistanceMetric() {} 
00063 }; // end of class
00064 
00065 } // end of namespace Statistics 
00066 } // end of namespace itk
00067 
00068 #ifndef ITK_MANUAL_INSTANTIATION
00069 #include "itkEuclideanSquareDistanceMetric.txx"
00070 #endif
00071 
00072 #endif
00073 

Generated at Mon Jul 12 2010 18:16:28 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000