ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkKappaStatisticImageToImageMetric.h>
Computes similarity between two binary objects to be registered.
This Class is templated over the type of the fixed and moving images to be compared. The metric here is designed for matching pixels in two images with the same exact value. Only one value can be considered (the default is 255) and can be specified with the SetForegroundValue method. In the computation of the metric, only foreground pixels are considered. The metric value is given by 2*|A&B|/(|A|+|B|), where A is the foreground region in the moving image, B is the foreground region in the fixed image, & is intersection, and |.| indicates the area of the enclosed set. The metric is described in "Morphometric Analysis of White Matter Lesions in MR Images: Method and Validation", A. P. Zijdenbos, B. M. Dawant, R. A. Margolin, A. C. Palmer.
This metric is especially useful when considering the similarity between binary images. Given the nature of binary images, a nearest neighbor interpolator is the preferred interpolator.
Metric values range from 0.0 (no foreground alignment) to 1.0 (perfect foreground alignment). When dealing with optimizers that can only minimize a metric, use the ComplementOn() method.
Definition at line 54 of file itkKappaStatisticImageToImageMetric.h.
typedef SmartPointer< const Self > itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::ConstPointer |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 63 of file itkKappaStatisticImageToImageMetric.h.
typedef Superclass::DerivativeType itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::DerivativeType |
Type of the derivative.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 83 of file itkKappaStatisticImageToImageMetric.h.
typedef Superclass::FixedImageConstPointer itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::FixedImageConstPointer |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 86 of file itkKappaStatisticImageToImageMetric.h.
typedef Superclass::FixedImageRegionType itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::FixedImageRegionType |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 88 of file itkKappaStatisticImageToImageMetric.h.
typedef Superclass::FixedImageType itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::FixedImageType |
Type of the fixed Image.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 84 of file itkKappaStatisticImageToImageMetric.h.
typedef Superclass::GradientImageType itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GradientImageType |
Gaussian filter to compute the gradient of the Moving Image
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 77 of file itkKappaStatisticImageToImageMetric.h.
typedef Superclass::GradientPixelType itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GradientPixelType |
Gaussian filter to compute the gradient of the Moving Image
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 78 of file itkKappaStatisticImageToImageMetric.h.
typedef Superclass::InputPointType itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::InputPointType |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 79 of file itkKappaStatisticImageToImageMetric.h.
typedef Superclass::MeasureType itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MeasureType |
Type of the measure.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 82 of file itkKappaStatisticImageToImageMetric.h.
typedef Superclass::MovingImageConstPointer itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MovingImageConstPointer |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 87 of file itkKappaStatisticImageToImageMetric.h.
typedef Superclass::MovingImageType itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MovingImageType |
Type of the moving Image.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 85 of file itkKappaStatisticImageToImageMetric.h.
typedef Superclass::OutputPointType itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::OutputPointType |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 80 of file itkKappaStatisticImageToImageMetric.h.
typedef SmartPointer< Self > itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::Pointer |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 62 of file itkKappaStatisticImageToImageMetric.h.
typedef Superclass::RealType itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::RealType |
Types transferred from the base class
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 69 of file itkKappaStatisticImageToImageMetric.h.
typedef KappaStatisticImageToImageMetric itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::Self |
Standard class typedefs.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 60 of file itkKappaStatisticImageToImageMetric.h.
typedef ImageToImageMetric< TFixedImage, TMovingImage > itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::Superclass |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 61 of file itkKappaStatisticImageToImageMetric.h.
typedef Superclass::TransformJacobianType itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::TransformJacobianType |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 76 of file itkKappaStatisticImageToImageMetric.h.
typedef Superclass::TransformParametersType itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::TransformParametersType |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 75 of file itkKappaStatisticImageToImageMetric.h.
typedef Superclass::TransformPointer itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::TransformPointer |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 74 of file itkKappaStatisticImageToImageMetric.h.
typedef Superclass::TransformType itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::TransformType |
Type of the Transform Base class
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 73 of file itkKappaStatisticImageToImageMetric.h.
itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::KappaStatisticImageToImageMetric | ( | ) | [protected] |
Set/Get whether this metric returns 2*|A&B|/(|A|+|B|) (ComplementOff, the default) or 1.0 - 2*|A&B|/(|A|+|B|) (ComplementOn). When using an optimizer that minimizes metric values use ComplementOn().
virtual itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::~KappaStatisticImageToImageMetric | ( | ) | [inline, protected, virtual] |
Set/Get whether this metric returns 2*|A&B|/(|A|+|B|) (ComplementOff, the default) or 1.0 - 2*|A&B|/(|A|+|B|) (ComplementOn). When using an optimizer that minimizes metric values use ComplementOn().
Definition at line 124 of file itkKappaStatisticImageToImageMetric.h.
itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::KappaStatisticImageToImageMetric | ( | const Self & | ) | [private] |
virtual void itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::ComplementOff | ( | ) | [virtual] |
Set/Get whether this metric returns 2*|A&B|/(|A|+|B|) (ComplementOff, the default) or 1.0 - 2*|A&B|/(|A|+|B|) (ComplementOn). When using an optimizer that minimizes metric values use ComplementOn().
virtual void itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::ComplementOn | ( | ) | [virtual] |
Set/Get whether this metric returns 2*|A&B|/(|A|+|B|) (ComplementOff, the default) or 1.0 - 2*|A&B|/(|A|+|B|) (ComplementOn). When using an optimizer that minimizes metric values use ComplementOn().
void itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::ComputeGradient | ( | ) | [virtual] |
Computes the gradient image and assigns it to m_GradientImage
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
virtual::itk::LightObject::Pointer itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::CreateAnother | ( | void | ) | const [virtual] |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
virtual bool itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GetComplement | ( | ) | const [virtual] |
Set/Get whether this metric returns 2*|A&B|/(|A|+|B|) (ComplementOff, the default) or 1.0 - 2*|A&B|/(|A|+|B|) (ComplementOn). When using an optimizer that minimizes metric values use ComplementOn().
void itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GetDerivative | ( | const TransformParametersType & | , |
DerivativeType & | derivative | ||
) | const |
Get the derivatives of the match measure.
virtual RealType itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GetForegroundValue | ( | ) | const [virtual] |
This method allows the user to set the foreground value. The default value is 255.
virtual const char* itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
MeasureType itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GetValue | ( | const TransformParametersType & | parameters | ) | const |
Get the value of the metric at a particular parameter setting. The metric value is given by 2*|A&B|/(|A|+|B|), where A is the moving image, B is the fixed image, & is intersection, and |.| indicates the area of the enclosed set. If ComplementOn has been set, the metric value is 1.0-2*|A&B|/(|A|+|B|).
void itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GetValueAndDerivative | ( | const TransformParametersType & | parameters, |
MeasureType & | Value, | ||
DerivativeType & | Derivative | ||
) | const |
Get both the value and derivative. This method internally calls the GetValue()
and the GetDerivative()
method.
static Pointer itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
void itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::operator= | ( | const Self & | ) | [private] |
Mutex lock to protect modification to the reference count
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
void itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Set/Get whether this metric returns 2*|A&B|/(|A|+|B|) (ComplementOff, the default) or 1.0 - 2*|A&B|/(|A|+|B|) (ComplementOn). When using an optimizer that minimizes metric values use ComplementOn().
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
virtual void itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::SetComplement | ( | bool | _arg | ) | [virtual] |
Set/Get whether this metric returns 2*|A&B|/(|A|+|B|) (ComplementOff, the default) or 1.0 - 2*|A&B|/(|A|+|B|) (ComplementOn). When using an optimizer that minimizes metric values use ComplementOn().
virtual void itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::SetForegroundValue | ( | RealType | _arg | ) | [virtual] |
This method allows the user to set the foreground value. The default value is 255.
bool itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::m_Complement [private] |
Definition at line 133 of file itkKappaStatisticImageToImageMetric.h.
RealType itk::KappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::m_ForegroundValue [private] |
Definition at line 132 of file itkKappaStatisticImageToImageMetric.h.