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

itkMeanReciprocalSquareDifferencePointSetToImageMetric.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkMeanReciprocalSquareDifferencePointSetToImageMetric.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:28:34 $ 00007 Version: $Revision: 1.2 $ 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 __itkMeanReciprocalSquareDifferencePointSetToImageMetric_h 00018 #define __itkMeanReciprocalSquareDifferencePointSetToImageMetric_h 00019 00020 #include "itkSimilarityRegistrationMetric.h" 00021 #include "itkCovariantVector.h" 00022 #include "itkPoint.h" 00023 00024 00025 namespace itk 00026 { 00027 00040 template < class TTarget, class TMapper > 00041 class ITK_EXPORT MeanReciprocalSquareDifferencePointSetToImageMetric : 00042 public SimilarityRegistrationMetric< TTarget, TMapper, double, 00043 CovariantVector<double, TMapper::SpaceDimension > > 00044 { 00045 public: 00047 itkStaticConstMacro(SpaceDimension, unsigned int, 00048 TMapper::SpaceDimension); 00049 itkStaticConstMacro(RangeDimension, unsigned int, 9); 00050 00052 typedef double MeasureType; 00053 00055 typedef CovariantVector<MeasureType, itkGetStaticConstMacro(SpaceDimension) > 00056 DerivativeType; 00057 00059 typedef MeanReciprocalSquareDifferencePointSetToImageMetric Self; 00060 typedef SimilarityRegistrationMetric<TTarget, TMapper, 00061 MeasureType,DerivativeType > Superclass; 00062 typedef SmartPointer<Self> Pointer; 00063 typedef SmartPointer<const Self> ConstPointer; 00064 00066 itkNewMacro(Self); 00067 00069 itkTypeMacro(MeanReciprocalSquareDifferencePointSetToImageMetric, Object); 00070 00072 typedef TMapper MapperType; 00073 00075 typedef typename MapperType::DomainType ReferenceType; 00076 00078 typedef TTarget TargetType; 00079 00081 typedef typename ReferenceType::ConstPointer ReferenceConstPointer; 00082 00084 typedef typename TargetType::ConstPointer TargetConstPointer; 00085 00087 typedef typename MapperType::Pointer MapperPointer; 00088 00090 typedef typename TMapper::ParametersType ParametersType; 00091 00093 const DerivativeType & GetDerivative( const ParametersType & parameters ); 00094 00096 MeasureType GetValue( const ParametersType & parameters ); 00097 00099 void GetValueAndDerivative( const ParametersType & parameters, 00100 MeasureType& Value, DerivativeType& Derivative); 00101 00103 itkSetMacro( Lambda, double ); 00104 itkGetReferenceConstMacro( Lambda, double ); 00105 00106 protected: 00107 MeanReciprocalSquareDifferencePointSetToImageMetric(); 00108 virtual ~MeanReciprocalSquareDifferencePointSetToImageMetric() {}; 00109 void PrintSelf(std::ostream& os, Indent indent) const; 00110 00111 private: 00112 MeanReciprocalSquareDifferencePointSetToImageMetric(const Self&); //purposely not implemented 00113 void operator=(const Self&); //purposely not implemented 00114 00115 double m_Lambda; 00116 00117 00118 }; 00119 00120 } // end namespace itk 00121 00122 #ifndef ITK_MANUAL_INSTANTIATION 00123 #include "itkMeanReciprocalSquareDifferencePointSetToImageMetric.txx" 00124 #endif 00125 00126 #endif 00127 00128 00129

Generated at Sat Mar 31 02:24:09 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000