00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkNormalizedCorrelationPointSetToImageMetric_h
00018 #define __itkNormalizedCorrelationPointSetToImageMetric_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 NormalizedCorrelationPointSetToImageMetric :
00042 public SimilarityRegistrationMetric< TTarget, TMapper, double,
00043 CovariantVector<double, TMapper::SpaceDimension > >
00044
00045 {
00046 public:
00048 itkStaticConstMacro(SpaceDimension, unsigned int,
00049 TMapper::SpaceDimension);
00050 itkStaticConstMacro(RangeDimension, unsigned int, 9};
00051
00053 typedef NormalizedCorrelationPointSetToImageMetric Self;
00054 typedef double MeasureType;
00055 typedef CovariantVector<MeasureType,itkGetStaticConstMacro(SpaceDimension) > DerivativeType;
00056
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(NormalizedCorrelationPointSetToImageMetric, 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 NormalizedCorrelationPointSetToImageMetric();
00101 virtual ~NormalizedCorrelationPointSetToImageMetric() {};
00102
00103 private:
00104 NormalizedCorrelationPointSetToImageMetric(const Self&);
00105 void operator=(const Self&);
00106
00107 };
00108
00109 }
00110
00111 #ifndef ITK_MANUAL_INSTANTIATION
00112 #include "itkNormalizedCorrelationPointSetToImageMetric.txx"
00113 #endif
00114
00115 #endif
00116
00117
00118