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 __itkKappaStatisticImageToImageMetric_h
00018 #define __itkKappaStatisticImageToImageMetric_h
00019
00020 #include "itkImageToImageMetric.h"
00021
00022 namespace itk
00023 {
00051 template < class TFixedImage, class TMovingImage >
00052 class ITK_EXPORT KappaStatisticImageToImageMetric :
00053 public ImageToImageMetric< TFixedImage, TMovingImage>
00054 {
00055 public:
00056
00058 typedef KappaStatisticImageToImageMetric Self;
00059 typedef ImageToImageMetric<TFixedImage, TMovingImage > Superclass;
00060 typedef SmartPointer<Self> Pointer;
00061 typedef SmartPointer<const Self> ConstPointer;
00062
00064 itkNewMacro(Self);
00065
00067 itkTypeMacro(KappaStatisticImageToImageMetric, ImageToImageMetric);
00068
00070 typedef typename Superclass::RealType RealType;
00071 typedef typename Superclass::TransformType TransformType;
00072 typedef typename Superclass::TransformPointer TransformPointer;
00073 typedef typename Superclass::TransformParametersType TransformParametersType;
00074 typedef typename Superclass::TransformJacobianType TransformJacobianType;
00075 typedef typename Superclass::GradientImageType GradientImageType;
00076 typedef typename Superclass::GradientPixelType GradientPixelType;
00077 typedef typename Superclass::InputPointType InputPointType;
00078 typedef typename Superclass::OutputPointType OutputPointType;
00079
00080 typedef typename Superclass::MeasureType MeasureType;
00081 typedef typename Superclass::DerivativeType DerivativeType;
00082 typedef typename Superclass::FixedImageType FixedImageType;
00083 typedef typename Superclass::MovingImageType MovingImageType;
00084 typedef typename Superclass::FixedImageConstPointer FixedImageConstPointer;
00085 typedef typename Superclass::MovingImageConstPointer MovingImageConstPointer;
00086 typedef typename Superclass::FixedImageRegionType FixedImageRegionType;
00087
00089 void ComputeGradient();
00090
00092 void GetDerivative( const TransformParametersType &,
00093 DerivativeType & derivative ) const;
00094
00100 MeasureType GetValue( const TransformParametersType & parameters ) const;
00101
00104 void GetValueAndDerivative( const TransformParametersType & parameters,
00105 MeasureType& Value, DerivativeType& Derivative ) const;
00106
00109 itkSetMacro(ForegroundValue, RealType);
00110 itkGetConstMacro(ForegroundValue, RealType);
00112
00113
00118 itkSetMacro(Complement, bool);
00119 itkBooleanMacro(Complement);
00120 itkGetConstMacro(Complement, bool);
00122
00123
00124 protected:
00125 KappaStatisticImageToImageMetric();
00126 virtual ~KappaStatisticImageToImageMetric() {};
00127 void PrintSelf(std::ostream& os, Indent indent) const;
00128
00129
00130 private:
00131 KappaStatisticImageToImageMetric(const Self&);
00132 void operator=(const Self&);
00133
00134 RealType m_ForegroundValue;
00135 bool m_Complement;
00136
00137 };
00138
00139 }
00140
00141 #ifndef ITK_MANUAL_INSTANTIATION
00142 #include "itkKappaStatisticImageToImageMetric.txx"
00143 #endif
00144
00145 #endif
00146