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 __itkNormalizedCorrelationPointSetToImageMetric_h
00018 #define __itkNormalizedCorrelationPointSetToImageMetric_h
00019
00020 #include "itkPointSetToImageMetric.h"
00021 #include "itkCovariantVector.h"
00022 #include "itkPoint.h"
00023
00024
00025 namespace itk
00026 {
00042 template < class TFixedPointSet, class TMovingImage >
00043 class ITK_EXPORT NormalizedCorrelationPointSetToImageMetric :
00044 public PointSetToImageMetric< TFixedPointSet, TMovingImage>
00045 {
00046 public:
00047
00049 typedef NormalizedCorrelationPointSetToImageMetric Self;
00050 typedef PointSetToImageMetric<TFixedPointSet, TMovingImage > Superclass;
00051 typedef SmartPointer<Self> Pointer;
00052 typedef SmartPointer<const Self> ConstPointer;
00053
00055 itkNewMacro(Self);
00056
00058 itkTypeMacro(NormalizedCorrelationPointSetToImageMetric,
00059 PointSetToImageMetric);
00060
00061
00063 typedef typename Superclass::RealType RealType;
00064 typedef typename Superclass::TransformType TransformType;
00065 typedef typename Superclass::TransformPointer TransformPointer;
00066 typedef typename Superclass::TransformParametersType TransformParametersType;
00067 typedef typename Superclass::TransformJacobianType TransformJacobianType;
00068 typedef typename Superclass::GradientPixelType GradientPixelType;
00069
00070 typedef typename Superclass::MeasureType MeasureType;
00071 typedef typename Superclass::DerivativeType DerivativeType;
00072 typedef typename Superclass::FixedPointSetType FixedPointSetType;
00073 typedef typename Superclass::MovingImageType MovingImageType;
00074 typedef typename Superclass::FixedPointSetConstPointer FixedPointSetConstPointer;
00075 typedef typename Superclass::MovingImageConstPointer MovingImageConstPointer;
00076
00077 typedef typename Superclass::PointIterator PointIterator;
00078 typedef typename Superclass::PointDataIterator PointDataIterator;
00079 typedef typename Superclass::InputPointType InputPointType;
00080 typedef typename Superclass::OutputPointType OutputPointType;
00081
00082
00084 void GetDerivative( const TransformParametersType & parameters,
00085 DerivativeType & Derivative ) const;
00086
00088 MeasureType GetValue( const TransformParametersType & parameters ) const;
00089
00091 void GetValueAndDerivative( const TransformParametersType & parameters,
00092 MeasureType& Value, DerivativeType& Derivative ) const;
00093
00098 itkSetMacro( SubtractMean, bool );
00099 itkGetConstReferenceMacro( SubtractMean, bool );
00100 itkBooleanMacro( SubtractMean );
00102
00103 protected:
00104 NormalizedCorrelationPointSetToImageMetric();
00105 virtual ~NormalizedCorrelationPointSetToImageMetric() {};
00106 void PrintSelf(std::ostream& os, Indent indent) const;
00107
00108 private:
00109 NormalizedCorrelationPointSetToImageMetric(const Self&);
00110 void operator=(const Self&);
00111
00112 bool m_SubtractMean;
00113
00114 };
00115
00116 }
00117
00118 #ifndef ITK_MANUAL_INSTANTIATION
00119 #include "itkNormalizedCorrelationPointSetToImageMetric.txx"
00120 #endif
00121
00122 #endif
00123