itkMeanReciprocalSquareDifferencePointSetToImageMetric.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkMeanReciprocalSquareDifferencePointSetToImageMetric_h
00018 #define __itkMeanReciprocalSquareDifferencePointSetToImageMetric_h
00019
00020 #include "itkPointSetToImageMetric.h"
00021 #include "itkCovariantVector.h"
00022 #include "itkPoint.h"
00023
00024
00025 namespace itk
00026 {
00027
00045 template < class TFixedPointSet, class TMovingImage >
00046 class ITK_EXPORT MeanReciprocalSquareDifferencePointSetToImageMetric :
00047 public PointSetToImageMetric< TFixedPointSet, TMovingImage>
00048 {
00049 public:
00050
00052 typedef MeanReciprocalSquareDifferencePointSetToImageMetric Self;
00053 typedef PointSetToImageMetric<TFixedPointSet, TMovingImage > Superclass;
00054 typedef SmartPointer<Self> Pointer;
00055 typedef SmartPointer<const Self> ConstPointer;
00056
00058 itkNewMacro(Self);
00059
00061 itkTypeMacro( MeanReciprocalSquareDifferencePointSetToImageMetric, Object);
00062
00063
00065 typedef typename Superclass::RealType RealType;
00066 typedef typename Superclass::TransformType TransformType;
00067 typedef typename Superclass::TransformPointer TransformPointer;
00068 typedef typename Superclass::TransformParametersType TransformParametersType;
00069 typedef typename Superclass::TransformJacobianType TransformJacobianType;
00070 typedef typename Superclass::InputPointType InputPointType;
00071 typedef typename Superclass::OutputPointType OutputPointType;
00072 typedef typename Superclass::GradientPixelType GradientPixelType;
00073
00074 typedef typename Superclass::MeasureType MeasureType;
00075 typedef typename Superclass::DerivativeType DerivativeType;
00076 typedef typename Superclass::FixedPointSetType FixedPointSetType;
00077 typedef typename Superclass::MovingImageType MovingImageType;
00078 typedef typename Superclass::FixedPointSetConstPointer FixedPointSetConstPointer;
00079 typedef typename Superclass::MovingImageConstPointer MovingImageConstPointer;
00080
00081 typedef typename Superclass::PointIterator PointIterator;
00082 typedef typename Superclass::PointDataIterator PointDataIterator;
00083
00084
00086 void GetDerivative( const TransformParametersType & parameters,
00087 DerivativeType & Derivative ) const;
00088
00090 MeasureType GetValue( const TransformParametersType & parameters ) const;
00091
00093 void GetValueAndDerivative( const TransformParametersType & parameters,
00094 MeasureType& Value, DerivativeType& Derivative ) const;
00095
00097 itkSetMacro( Lambda, double );
00098 itkGetConstMacro( Lambda, double );
00100
00101
00102 protected:
00103 MeanReciprocalSquareDifferencePointSetToImageMetric();
00104 virtual ~MeanReciprocalSquareDifferencePointSetToImageMetric() {};
00105 virtual void PrintSelf(std::ostream& os, Indent indent) const;
00106
00107 private:
00108 MeanReciprocalSquareDifferencePointSetToImageMetric(const Self&);
00109 void operator=(const Self&);
00110
00111 double m_Lambda;
00112
00113
00114 };
00115
00116 }
00117
00118 #ifndef ITK_MANUAL_INSTANTIATION
00119 #include "itkMeanReciprocalSquareDifferencePointSetToImageMetric.txx"
00120 #endif
00121
00122 #endif
00123