00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkMeanReciprocalSquareDifferenceImageToImageMetric_h
00018 #define __itkMeanReciprocalSquareDifferenceImageToImageMetric_h
00019
00020 #include "itkImageToImageMetric.h"
00021 #include "itkCovariantVector.h"
00022 #include "itkPoint.h"
00023
00024
00025 namespace itk
00026 {
00045 template < class TFixedImage, class TMovingImage >
00046 class ITK_EXPORT MeanReciprocalSquareDifferenceImageToImageMetric :
00047 public ImageToImageMetric< TFixedImage, TMovingImage>
00048 {
00049 public:
00050
00052 typedef MeanReciprocalSquareDifferenceImageToImageMetric Self;
00053 typedef ImageToImageMetric<TFixedImage, TMovingImage > Superclass;
00054
00055 typedef SmartPointer<Self> Pointer;
00056 typedef SmartPointer<const Self> ConstPointer;
00057
00059 itkNewMacro(Self);
00060
00062 itkTypeMacro(MeanReciprocalSquareDifferenceImageToImageMetric, ImageToImageMetric);
00063
00064
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
00073 typedef typename Superclass::MeasureType MeasureType;
00074 typedef typename Superclass::DerivativeType DerivativeType;
00075 typedef typename Superclass::FixedImageType FixedImageType;
00076 typedef typename Superclass::MovingImageType MovingImageType;
00077 typedef typename Superclass::FixedImageConstPointer FixedImageConstPointer;
00078 typedef typename Superclass::MovingImageConstPointer MovingImageConstPointer;
00079
00080
00082 void GetDerivative( const TransformParametersType & parameters,
00083 DerivativeType & derivative ) const;
00084
00086 MeasureType GetValue( const TransformParametersType & parameters ) const;
00087
00089 void GetValueAndDerivative( const TransformParametersType & parameters,
00090 MeasureType& Value, DerivativeType& derivative ) const;
00091
00094 itkGetMacro( Lambda, double );
00095 itkSetMacro( Lambda, double );
00097
00100 itkGetMacro( Delta, double );
00101 itkSetMacro( Delta, double );
00103
00104
00105 protected:
00106 MeanReciprocalSquareDifferenceImageToImageMetric();
00107 virtual ~MeanReciprocalSquareDifferenceImageToImageMetric() {};
00108 void PrintSelf(std::ostream& os, Indent indent) const;
00109
00110
00111 private:
00112 MeanReciprocalSquareDifferenceImageToImageMetric(const Self&);
00113 void operator=(const Self&);
00114
00115 double m_Lambda;
00116 double m_Delta;
00117 };
00118
00119 }
00120
00121 #ifndef ITK_MANUAL_INSTANTIATION
00122 #include "itkMeanReciprocalSquareDifferenceImageToImageMetric.txx"
00123 #endif
00124
00125 #endif
00126
00127
00128
00129