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

itkMeanSquaresPointSetToImageMetric.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMeanSquaresPointSetToImageMetric.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/09/11 19:39:01 $
00007   Version:   $Revision: 1.14 $
00008 
00009   Copyright (c) 2002 Insight 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 __itkMeanSquaresPointSetToImageMetric_h
00018 #define __itkMeanSquaresPointSetToImageMetric_h
00019 
00020 #ifdef    COMPILE_OLD_REGISTRATION_FRAMEWORK
00021 
00022 #include "itkSimilarityRegistrationMetric.h"
00023 #include "itkCovariantVector.h"
00024 #include "itkPoint.h"
00025 
00026 
00027 namespace itk
00028 {
00029   
00042 template < class TTarget, class TMapper > 
00043 class ITK_EXPORT MeanSquaresPointSetToImageMetric : 
00044 public SimilarityRegistrationMetric< TTarget, TMapper, double,
00045                                      CovariantVector<double, TMapper::SpaceDimension > >
00046 {
00047 public:
00049   itkStaticConstMacro(SpaceDimension, unsigned int,
00050                       TMapper::SpaceDimension);
00051   itkStaticConstMacro(RangeDimension, unsigned int, 9};
00052 
00054   typedef MeanSquaresPointSetToImageMetric  Self;
00055   typedef double MeasureType;
00056   typedef CovariantVector<MeasureType,itkGetStaticConstMacro(SpaceDimension) >  DerivativeType;
00057   typedef SimilarityRegistrationMetric< TTarget, TMapper,
00058                        MeasureType,DerivativeType >  Superclass;
00059   typedef SmartPointer<Self>   Pointer;
00060   typedef SmartPointer<const Self>  ConstPointer;
00061 
00063   itkNewMacro(Self);
00064  
00066   itkTypeMacro(MeanSquaresPointSetToImageMetric, Object);
00067 
00069   typedef TMapper MapperType;
00070   
00072   typedef typename MapperType::DomainType ReferenceType;
00073 
00075   typedef TTarget TargetType;
00076  
00078   typedef typename ReferenceType::ConstPointer ReferenceConstPointer;
00079 
00081   typedef typename TargetType::ConstPointer TargetConstPointer;
00082 
00084   typedef typename MapperType::Pointer MapperPointer;
00085 
00087   typedef typename  TMapper::ParametersType       ParametersType;
00088 
00090   const DerivativeType & GetDerivative( const ParametersType & parameters );
00091 
00093   MeasureType GetValue( const ParametersType & parameters );
00094 
00096    void GetValueAndDerivative( const ParametersType & parameters,
00097                                MeasureType& Value, DerivativeType& Derivative);
00098 
00099 protected:
00100   MeanSquaresPointSetToImageMetric();
00101   virtual ~MeanSquaresPointSetToImageMetric() {};
00102 
00103 private:  
00104   MeanSquaresPointSetToImageMetric(const Self&); //purposely not implemented
00105   void operator=(const Self&); //purposely not implemented
00106 
00107 };
00108 
00109 } // end namespace itk
00110 
00111 #ifndef ITK_MANUAL_INSTANTIATION
00112 #include "itkMeanSquaresPointSetToImageMetric.txx"
00113 #endif
00114 
00115 #endif
00116 #endif
00117 
00118 
00119 

Generated at Wed Mar 12 01:13:05 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000