go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Data Structures | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Private Attributes
itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage > Class Template Reference

#include <itkAdvancedKappaStatisticImageToImageMetric.h>

Detailed Description

template<class TFixedImage, class TMovingImage>
class itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >

Computes similarity between two 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 56 of file itkAdvancedKappaStatisticImageToImageMetric.h.

+ Inheritance diagram for itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >:

Data Structures

struct  KappaGetValueAndDerivativePerThreadStruct
 
struct  MultiThreaderAccumulateDerivativeType
 

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef Superclass::CoordinateRepresentationType CoordinateRepresentationType
 
typedef Superclass::DerivativeType DerivativeType
 
typedef Superclass::DerivativeValueType DerivativeValueType
 
typedef Superclass::FixedImageConstPointer FixedImageConstPointer
 
typedef Superclass::FixedImageLimiterOutputType FixedImageLimiterOutputType
 
typedef Superclass::FixedImageLimiterType FixedImageLimiterType
 
typedef Superclass::FixedImageMaskPointer FixedImageMaskPointer
 
typedef Superclass::FixedImageMaskType FixedImageMaskType
 
typedef Superclass::FixedImagePixelType FixedImagePixelType
 
typedef Superclass::FixedImageRegionType FixedImageRegionType
 
typedef Superclass::FixedImageType FixedImageType
 
typedef Superclass::GradientImageFilterPointer GradientImageFilterPointer
 
typedef Superclass::GradientImageFilterType GradientImageFilterType
 
typedef Superclass::GradientImagePointer GradientImagePointer
 
typedef Superclass::GradientImageType GradientImageType
 
typedef Superclass::GradientPixelType GradientPixelType
 
typedef Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
 
typedef Superclass::ImageSampleContainerType ImageSampleContainerType
 
typedef Superclass::ImageSamplerPointer ImageSamplerPointer
 
typedef Superclass::ImageSamplerType ImageSamplerType
 
typedef Superclass::InputPointType InputPointType
 
typedef Superclass::InterpolatorPointer InterpolatorPointer
 
typedef Superclass::InterpolatorType InterpolatorType
 
typedef Superclass::MeasureType MeasureType
 
typedef Superclass::MovingImageConstPointer MovingImageConstPointer
 
typedef Superclass::MovingImageDerivativeScalesType MovingImageDerivativeScalesType
 
typedef Superclass::MovingImageLimiterOutputType MovingImageLimiterOutputType
 
typedef Superclass::MovingImageLimiterType MovingImageLimiterType
 
typedef Superclass::MovingImageMaskPointer MovingImageMaskPointer
 
typedef Superclass::MovingImageMaskType MovingImageMaskType
 
typedef Superclass::MovingImagePixelType MovingImagePixelType
 
typedef Superclass::MovingImageRegionType MovingImageRegionType
 
typedef Superclass::MovingImageType MovingImageType
 
typedef Superclass::NumberOfParametersType NumberOfParametersType
 
typedef Superclass::OutputPointType OutputPointType
 
typedef Superclass::ParametersType ParametersType
 
typedef SmartPointer< SelfPointer
 
typedef Superclass::RealType RealType
 
typedef AdvancedKappaStatisticImageToImageMetric Self
 
typedef AdvancedImageToImageMetric< TFixedImage, TMovingImage > Superclass
 
typedef Superclass::ThreaderType ThreaderType
 
typedef Superclass::ThreadInfoType ThreadInfoType
 
typedef Superclass::TransformJacobianType TransformJacobianType
 
typedef Superclass::TransformParametersType TransformParametersType
 
typedef Superclass::TransformPointer TransformPointer
 
typedef Superclass::TransformType TransformType
 
- Public Types inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
typedef AdvancedTransform< ScalarType, FixedImageDimension, MovingImageDimension > AdvancedTransformType
 
typedef BSplineOrder1TransformType::Pointer BSplineOrder1TransformPointer
 
typedef AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 1 > BSplineOrder1TransformType
 
typedef BSplineOrder2TransformType::Pointer BSplineOrder2TransformPointer
 
typedef AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 2 > BSplineOrder2TransformType
 
typedef BSplineOrder3TransformType::Pointer BSplineOrder3TransformPointer
 
typedef AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 3 > BSplineOrder3TransformType
 
typedef AdvancedCombinationTransform< ScalarType, FixedImageDimension > CombinationTransformType
 
typedef SmartPointer< const SelfConstPointer
 
typedef Superclass::CoordinateRepresentationType CoordinateRepresentationType
 
typedef Superclass::DerivativeType DerivativeType
 
typedef DerivativeType::ValueType DerivativeValueType
 
typedef Superclass::FixedImageConstPointer FixedImageConstPointer
 
typedef FixedImageLimiterType::OutputType FixedImageLimiterOutputType
 
typedef FixedImageLimiterType::Pointer FixedImageLimiterPointer
 
typedef LimiterFunctionBase< RealType, FixedImageDimension > FixedImageLimiterType
 
typedef Superclass::FixedImageMaskPointer FixedImageMaskPointer
 
typedef ImageMaskSpatialObject< itkGetStaticConstMacro(FixedImageDimension) > FixedImageMaskSpatialObject2Type
 
typedef Superclass::FixedImageMaskType FixedImageMaskType
 
typedef FixedImageType::PixelType FixedImagePixelType
 
typedef FixedImageType::Pointer FixedImagePointer
 
typedef Superclass::FixedImageRegionType FixedImageRegionType
 
typedef Superclass::FixedImageType FixedImageType
 
typedef Superclass::GradientImageFilterPointer GradientImageFilterPointer
 
typedef Superclass::GradientImageFilterType GradientImageFilterType
 
typedef Superclass::GradientImagePointer GradientImagePointer
 
typedef Superclass::GradientImageType GradientImageType
 
typedef Superclass::GradientPixelType GradientPixelType
 
typedef vnl_sparse_matrix< HessianValueTypeHessianType
 
typedef DerivativeType::ValueType HessianValueType
 
typedef ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
 
typedef ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
 
typedef ImageSamplerType::Pointer ImageSamplerPointer
 
typedef ImageSamplerBase< FixedImageTypeImageSamplerType
 
typedef Superclass::InputPointType InputPointType
 
typedef Superclass::InterpolatorPointer InterpolatorPointer
 
typedef Superclass::InterpolatorType InterpolatorType
 
typedef Superclass::MeasureType MeasureType
 
typedef Superclass::MovingImageConstPointer MovingImageConstPointer
 
typedef FixedArray< double, Self::MovingImageDimension > MovingImageDerivativeScalesType
 
typedef MovingImageLimiterType::OutputType MovingImageLimiterOutputType
 
typedef MovingImageLimiterType::Pointer MovingImageLimiterPointer
 
typedef LimiterFunctionBase< RealType, MovingImageDimension > MovingImageLimiterType
 
typedef Superclass::MovingImageMaskPointer MovingImageMaskPointer
 
typedef ImageMaskSpatialObject< itkGetStaticConstMacro(MovingImageDimension) > MovingImageMaskSpatialObject2Type
 
typedef Superclass::MovingImageMaskType MovingImageMaskType
 
typedef Superclass::MovingImagePixelType MovingImagePixelType
 
typedef MovingImageType::Pointer MovingImagePointer
 
typedef MovingImageType::RegionType MovingImageRegionType
 
typedef Superclass::MovingImageType MovingImageType
 
typedef AdvancedTransformType::NumberOfParametersType NumberOfParametersType
 
typedef Superclass::OutputPointType OutputPointType
 
typedef Superclass::ParametersType ParametersType
 
typedef SmartPointer< SelfPointer
 
typedef Superclass::RealType RealType
 
typedef TransformType::ScalarType ScalarType
 
typedef AdvancedImageToImageMetric Self
 
typedef ImageToImageMetric< TFixedImage, TMovingImage > Superclass
 
typedef itk::PlatformMultiThreader ThreaderType
 
typedef ThreaderType::WorkUnitInfo ThreadInfoType
 
typedef Superclass::TransformJacobianType TransformJacobianType
 
typedef Superclass::TransformParametersType TransformParametersType
 
typedef Superclass::TransformPointer TransformPointer
 
typedef Superclass::TransformType TransformType
 

Public Member Functions

virtual void ComplementOff ()
 
virtual void ComplementOn ()
 
void ComputeGradient (void) override
 
virtual const char * GetClassName () const
 
virtual const boolGetComplement ()
 
void GetDerivative (const TransformParametersType &parameters, DerivativeType &derivative) const override
 
virtual const RealTypeGetEpsilon ()
 
virtual const RealTypeGetForegroundValue ()
 
MeasureType GetValue (const TransformParametersType &parameters) const override
 
void GetValueAndDerivative (const TransformParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const override
 
virtual void GetValueAndDerivativeSingleThreaded (const TransformParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const
 
 itkStaticConstMacro (FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
 
 itkStaticConstMacro (MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
 
virtual void SetComplement (bool _arg)
 
virtual void SetEpsilon (RealType _arg)
 
virtual void SetForegroundValue (RealType _arg)
 
virtual void SetUseForegroundValue (bool _arg)
 
- Public Member Functions inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
virtual void BeforeThreadedGetValueAndDerivative (const TransformParametersType &parameters) const
 
virtual const char * GetClassName () const
 
virtual const FixedImageLimiterTypeGetFixedImageLimiter ()
 
virtual double GetFixedLimitRangeRatio () const
 
virtual ImageSamplerTypeGetImageSampler (void) const
 
virtual const MovingImageDerivativeScalesTypeGetMovingImageDerivativeScales ()
 
virtual const MovingImageLimiterTypeGetMovingImageLimiter ()
 
virtual double GetMovingLimitRangeRatio () const
 
virtual double GetRequiredRatioOfValidSamples () const
 
virtual bool GetScaleGradientWithRespectToMovingImageOrientation () const
 
virtual void GetSelfHessian (const TransformParametersType &parameters, HessianType &H) const
 
const AdvancedTransformTypeGetTransform (void) const override
 
virtual bool GetUseFixedImageLimiter () const
 
virtual bool GetUseImageSampler () const
 
virtual const boolGetUseMetricSingleThreaded ()
 
virtual bool GetUseMovingImageDerivativeScales () const
 
virtual bool GetUseMovingImageLimiter () const
 
virtual const boolGetUseMultiThread ()
 
void Initialize (void) override
 
 itkStaticConstMacro (FixedImageDimension, unsigned int, TFixedImage::ImageDimension)
 
 itkStaticConstMacro (MovingImageDimension, unsigned int, TMovingImage::ImageDimension)
 
virtual void SetFixedImageLimiter (FixedImageLimiterType *_arg)
 
virtual void SetFixedLimitRangeRatio (double _arg)
 
virtual void SetImageSampler (ImageSamplerType *_arg)
 
virtual void SetMovingImageDerivativeScales (MovingImageDerivativeScalesType _arg)
 
virtual void SetMovingImageLimiter (MovingImageLimiterType *_arg)
 
virtual void SetMovingLimitRangeRatio (double _arg)
 
virtual void SetNumberOfWorkUnits (ThreadIdType numberOfThreads)
 
virtual void SetRequiredRatioOfValidSamples (double _arg)
 
virtual void SetScaleGradientWithRespectToMovingImageOrientation (bool _arg)
 
virtual void SetTransform (AdvancedTransformType *arg)
 
virtual void SetUseMetricSingleThreaded (bool _arg)
 
virtual void SetUseMovingImageDerivativeScales (bool _arg)
 
virtual void SetUseMultiThread (bool _arg)
 
virtual void UseMetricSingleThreadedOff ()
 
virtual void UseMetricSingleThreadedOn ()
 
virtual void UseMultiThreadOff ()
 
virtual void UseMultiThreadOn ()
 

Static Public Member Functions

static Pointer New ()
 

Protected Types

typedef Superclass::BSplineInterpolatorType BSplineInterpolatorType
 
typedef Superclass::CentralDifferenceGradientFilterType CentralDifferenceGradientFilterType
 
typedef Superclass::FixedImageIndexType FixedImageIndexType
 
typedef Superclass::FixedImageIndexValueType FixedImageIndexValueType
 
typedef Superclass::FixedImagePointType FixedImagePointType
 
typedef Superclass::MovingImageContinuousIndexType MovingImageContinuousIndexType
 
typedef Superclass::MovingImageDerivativeType MovingImageDerivativeType
 
typedef Superclass::MovingImageIndexType MovingImageIndexType
 
typedef Superclass::MovingImagePointType MovingImagePointType
 
typedef Superclass::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
 
- Protected Types inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
typedef BSplineInterpolatorFloatType::Pointer BSplineInterpolatorFloatPointer
 
typedef BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, floatBSplineInterpolatorFloatType
 
typedef BSplineInterpolatorType::Pointer BSplineInterpolatorPointer
 
typedef BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, doubleBSplineInterpolatorType
 
typedef CentralDifferenceGradientFilterType::Pointer CentralDifferenceGradientFilterPointer
 
typedef GradientImageFilter< MovingImageType, RealType, RealTypeCentralDifferenceGradientFilterType
 
typedef FixedImageType::IndexType FixedImageIndexType
 
typedef FixedImageIndexType::IndexValueType FixedImageIndexValueType
 
typedef TransformType::InputPointType FixedImagePointType
 
typedef LinearInterpolatorType::Pointer LinearInterpolatorPointer
 
typedef AdvancedLinearInterpolateImageFunction< MovingImageType, CoordinateRepresentationTypeLinearInterpolatorType
 
typedef InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
 
typedef BSplineInterpolatorType::CovariantVectorType MovingImageDerivativeType
 
typedef MovingImageType::IndexType MovingImageIndexType
 
typedef TransformType::OutputPointType MovingImagePointType
 
typedef AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
 
typedef ReducedBSplineInterpolatorType::Pointer ReducedBSplineInterpolatorPointer
 
typedef ReducedDimensionBSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, doubleReducedBSplineInterpolatorType
 

Protected Member Functions

 AdvancedKappaStatisticImageToImageMetric ()
 
void AfterThreadedGetValueAndDerivative (MeasureType &value, DerivativeType &derivative) const override
 
void InitializeThreadingParameters (void) const override
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
void ThreadedGetValueAndDerivative (ThreadIdType threadID) override
 
void UpdateValueAndDerivativeTerms (const RealType &fixedImageValue, const RealType &movingImageValue, std::vcl_size_t &fixedForegroundArea, std::vcl_size_t &movingForegroundArea, std::vcl_size_t &intersection, const DerivativeType &imageJacobian, const NonZeroJacobianIndicesType &nzji, DerivativeType &sum1, DerivativeType &sum2) const
 
 ~AdvancedKappaStatisticImageToImageMetric () override
 
- Protected Member Functions inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
 AdvancedImageToImageMetric ()
 
virtual void AfterThreadedGetValue (MeasureType &value) const
 
virtual void AfterThreadedGetValueAndDerivative (MeasureType &value, DerivativeType &derivative) const
 
virtual void CheckForAdvancedTransform (void)
 
virtual void CheckForBSplineInterpolator (void)
 
virtual void CheckForBSplineTransform (void) const
 
virtual void CheckNumberOfSamples (unsigned long wanted, unsigned long found) const
 
virtual bool EvaluateMovingImageValueAndDerivative (const MovingImagePointType &mappedPoint, RealType &movingImageValue, MovingImageDerivativeType *gradient) const
 
virtual bool EvaluateTransformJacobian (const FixedImagePointType &fixedImagePoint, TransformJacobianType &jacobian, NonZeroJacobianIndicesType &nzji) const
 
virtual void EvaluateTransformJacobianInnerProduct (const TransformJacobianType &jacobian, const MovingImageDerivativeType &movingImageDerivative, DerivativeType &imageJacobian) const
 
virtual void InitializeImageSampler (void)
 
virtual void InitializeLimiters (void)
 
virtual void InitializeThreadingParameters (void) const
 
virtual bool IsInsideMovingMask (const MovingImagePointType &point) const
 
 itkAlignedTypedef (ITK_CACHE_LINE_ALIGNMENT, PaddedGetValueAndDerivativePerThreadStruct, AlignedGetValueAndDerivativePerThreadStruct)
 
 itkAlignedTypedef (ITK_CACHE_LINE_ALIGNMENT, PaddedGetValuePerThreadStruct, AlignedGetValuePerThreadStruct)
 
 itkPadStruct (ITK_CACHE_LINE_ALIGNMENT, GetValueAndDerivativePerThreadStruct, PaddedGetValueAndDerivativePerThreadStruct)
 
 itkPadStruct (ITK_CACHE_LINE_ALIGNMENT, GetValuePerThreadStruct, PaddedGetValuePerThreadStruct)
 
void LaunchGetValueAndDerivativeThreaderCallback (void) const
 
void LaunchGetValueThreaderCallback (void) const
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual void SetUseFixedImageLimiter (bool _arg)
 
virtual void SetUseImageSampler (bool _arg)
 
virtual void SetUseMovingImageLimiter (bool _arg)
 
virtual void ThreadedGetValue (ThreadIdType threadID)
 
virtual void ThreadedGetValueAndDerivative (ThreadIdType threadID)
 
virtual bool TransformPoint (const FixedImagePointType &fixedImagePoint, MovingImagePointType &mappedPoint) const
 
 ~AdvancedImageToImageMetric () override
 

Static Protected Member Functions

static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION AccumulateDerivativesThreaderCallback (void *arg)
 
- Static Protected Member Functions inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION AccumulateDerivativesThreaderCallback (void *arg)
 
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION GetValueAndDerivativeThreaderCallback (void *arg)
 
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION GetValueThreaderCallback (void *arg)
 

Private Member Functions

 AdvancedKappaStatisticImageToImageMetric (const Self &)
 
 itkAlignedTypedef (ITK_CACHE_LINE_ALIGNMENT, PaddedKappaGetValueAndDerivativePerThreadStruct, AlignedKappaGetValueAndDerivativePerThreadStruct)
 
 itkPadStruct (ITK_CACHE_LINE_ALIGNMENT, KappaGetValueAndDerivativePerThreadStruct, PaddedKappaGetValueAndDerivativePerThreadStruct)
 
void operator= (const Self &)
 

Private Attributes

bool m_Complement
 
RealType m_Epsilon
 
RealType m_ForegroundValue
 
AlignedKappaGetValueAndDerivativePerThreadStruct * m_KappaGetValueAndDerivativePerThreadVariables
 
ThreadIdType m_KappaGetValueAndDerivativePerThreadVariablesSize
 
bool m_UseForegroundValue
 

Additional Inherited Members

- Protected Attributes inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
AdvancedTransformType::Pointer m_AdvancedTransform
 
BSplineInterpolatorPointer m_BSplineInterpolator
 
BSplineInterpolatorFloatPointer m_BSplineInterpolatorFloat
 
CentralDifferenceGradientFilterPointer m_CentralDifferenceGradientFilter
 
FixedImageLimiterPointer m_FixedImageLimiter
 
FixedImageLimiterOutputType m_FixedImageMaxLimit
 
FixedImageLimiterOutputType m_FixedImageMinLimit
 
FixedImagePixelType m_FixedImageTrueMax
 
FixedImagePixelType m_FixedImageTrueMin
 
double m_FixedLimitRangeRatio
 
AlignedGetValueAndDerivativePerThreadStruct * m_GetValueAndDerivativePerThreadVariables
 
ThreadIdType m_GetValueAndDerivativePerThreadVariablesSize
 
AlignedGetValuePerThreadStruct * m_GetValuePerThreadVariables
 
ThreadIdType m_GetValuePerThreadVariablesSize
 
ImageSamplerPointer m_ImageSampler
 
bool m_InterpolatorIsBSpline
 
bool m_InterpolatorIsBSplineFloat
 
bool m_InterpolatorIsLinear
 
bool m_InterpolatorIsReducedBSpline
 
LinearInterpolatorPointer m_LinearInterpolator
 
MovingImageLimiterPointer m_MovingImageLimiter
 
MovingImageLimiterOutputType m_MovingImageMaxLimit
 
MovingImageLimiterOutputType m_MovingImageMinLimit
 
MovingImagePixelType m_MovingImageTrueMax
 
MovingImagePixelType m_MovingImageTrueMin
 
double m_MovingLimitRangeRatio
 
ReducedBSplineInterpolatorPointer m_ReducedBSplineInterpolator
 
MultiThreaderParameterType m_ThreaderMetricParameters
 
bool m_TransformIsAdvanced
 
bool m_TransformIsBSpline
 
bool m_UseMetricSingleThreaded
 
bool m_UseMultiThread
 
bool m_UseOpenMP
 

Member Typedef Documentation

◆ BSplineInterpolatorType

template<class TFixedImage , class TMovingImage >
typedef Superclass::BSplineInterpolatorType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::BSplineInterpolatorType
protected

◆ CentralDifferenceGradientFilterType

template<class TFixedImage , class TMovingImage >
typedef Superclass::CentralDifferenceGradientFilterType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::CentralDifferenceGradientFilterType
protected

◆ ConstPointer

template<class TFixedImage , class TMovingImage >
typedef SmartPointer< const Self > itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::ConstPointer

◆ CoordinateRepresentationType

template<class TFixedImage , class TMovingImage >
typedef Superclass::CoordinateRepresentationType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::CoordinateRepresentationType

Typedefs from the superclass.

Definition at line 76 of file itkAdvancedKappaStatisticImageToImageMetric.h.

◆ DerivativeType

template<class TFixedImage , class TMovingImage >
typedef Superclass::DerivativeType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::DerivativeType

◆ DerivativeValueType

template<class TFixedImage , class TMovingImage >
typedef Superclass::DerivativeValueType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::DerivativeValueType

◆ FixedImageConstPointer

template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageConstPointer itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::FixedImageConstPointer

◆ FixedImageIndexType

template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageIndexType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::FixedImageIndexType
protected

Protected Typedefs Typedefs inherited from superclass

Definition at line 185 of file itkAdvancedKappaStatisticImageToImageMetric.h.

◆ FixedImageIndexValueType

template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageIndexValueType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::FixedImageIndexValueType
protected

◆ FixedImageLimiterOutputType

template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageLimiterOutputType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::FixedImageLimiterOutputType

◆ FixedImageLimiterType

template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageLimiterType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::FixedImageLimiterType

◆ FixedImageMaskPointer

template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageMaskPointer itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::FixedImageMaskPointer

◆ FixedImageMaskType

template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageMaskType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::FixedImageMaskType

◆ FixedImagePixelType

template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImagePixelType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::FixedImagePixelType

◆ FixedImagePointType

template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImagePointType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::FixedImagePointType
protected

◆ FixedImageRegionType

template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageRegionType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::FixedImageRegionType

◆ FixedImageType

template<class TFixedImage , class TMovingImage >
typedef Superclass::FixedImageType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::FixedImageType

◆ GradientImageFilterPointer

template<class TFixedImage , class TMovingImage >
typedef Superclass::GradientImageFilterPointer itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GradientImageFilterPointer

◆ GradientImageFilterType

template<class TFixedImage , class TMovingImage >
typedef Superclass::GradientImageFilterType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GradientImageFilterType

◆ GradientImagePointer

template<class TFixedImage , class TMovingImage >
typedef Superclass::GradientImagePointer itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GradientImagePointer

◆ GradientImageType

template<class TFixedImage , class TMovingImage >
typedef Superclass::GradientImageType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GradientImageType

◆ GradientPixelType

template<class TFixedImage , class TMovingImage >
typedef Superclass::GradientPixelType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GradientPixelType

◆ ImageSampleContainerPointer

template<class TFixedImage , class TMovingImage >
typedef Superclass::ImageSampleContainerPointer itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::ImageSampleContainerPointer

◆ ImageSampleContainerType

template<class TFixedImage , class TMovingImage >
typedef Superclass::ImageSampleContainerType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::ImageSampleContainerType

◆ ImageSamplerPointer

template<class TFixedImage , class TMovingImage >
typedef Superclass::ImageSamplerPointer itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::ImageSamplerPointer

◆ ImageSamplerType

template<class TFixedImage , class TMovingImage >
typedef Superclass::ImageSamplerType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::ImageSamplerType

◆ InputPointType

template<class TFixedImage , class TMovingImage >
typedef Superclass::InputPointType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::InputPointType

◆ InterpolatorPointer

template<class TFixedImage , class TMovingImage >
typedef Superclass::InterpolatorPointer itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::InterpolatorPointer

◆ InterpolatorType

template<class TFixedImage , class TMovingImage >
typedef Superclass::InterpolatorType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::InterpolatorType

◆ MeasureType

template<class TFixedImage , class TMovingImage >
typedef Superclass::MeasureType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MeasureType

◆ MovingImageConstPointer

template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageConstPointer itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MovingImageConstPointer

◆ MovingImageContinuousIndexType

template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageContinuousIndexType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MovingImageContinuousIndexType
protected

◆ MovingImageDerivativeScalesType

template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageDerivativeScalesType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MovingImageDerivativeScalesType

◆ MovingImageDerivativeType

template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageDerivativeType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MovingImageDerivativeType
protected

◆ MovingImageIndexType

template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageIndexType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MovingImageIndexType
protected

◆ MovingImageLimiterOutputType

template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageLimiterOutputType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MovingImageLimiterOutputType

◆ MovingImageLimiterType

template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageLimiterType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MovingImageLimiterType

◆ MovingImageMaskPointer

template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageMaskPointer itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MovingImageMaskPointer

◆ MovingImageMaskType

template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageMaskType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MovingImageMaskType

◆ MovingImagePixelType

template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImagePixelType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MovingImagePixelType

◆ MovingImagePointType

template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImagePointType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MovingImagePointType
protected

◆ MovingImageRegionType

template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageRegionType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MovingImageRegionType

◆ MovingImageType

template<class TFixedImage , class TMovingImage >
typedef Superclass::MovingImageType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::MovingImageType

◆ NonZeroJacobianIndicesType

template<class TFixedImage , class TMovingImage >
typedef Superclass::NonZeroJacobianIndicesType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::NonZeroJacobianIndicesType
protected

◆ NumberOfParametersType

template<class TFixedImage , class TMovingImage >
typedef Superclass::NumberOfParametersType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::NumberOfParametersType

◆ OutputPointType

template<class TFixedImage , class TMovingImage >
typedef Superclass::OutputPointType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::OutputPointType

◆ ParametersType

template<class TFixedImage , class TMovingImage >
typedef Superclass::ParametersType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::ParametersType

◆ Pointer

template<class TFixedImage , class TMovingImage >
typedef SmartPointer< Self > itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::Pointer

◆ RealType

template<class TFixedImage , class TMovingImage >
typedef Superclass::RealType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::RealType

◆ Self

template<class TFixedImage , class TMovingImage >
typedef AdvancedKappaStatisticImageToImageMetric itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::Self

Standard class typedefs.

Definition at line 62 of file itkAdvancedKappaStatisticImageToImageMetric.h.

◆ Superclass

template<class TFixedImage , class TMovingImage >
typedef AdvancedImageToImageMetric< TFixedImage, TMovingImage > itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::Superclass

◆ ThreaderType

template<class TFixedImage , class TMovingImage >
typedef Superclass::ThreaderType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::ThreaderType

◆ ThreadInfoType

template<class TFixedImage , class TMovingImage >
typedef Superclass::ThreadInfoType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::ThreadInfoType

◆ TransformJacobianType

template<class TFixedImage , class TMovingImage >
typedef Superclass::TransformJacobianType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::TransformJacobianType

◆ TransformParametersType

template<class TFixedImage , class TMovingImage >
typedef Superclass::TransformParametersType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::TransformParametersType

◆ TransformPointer

template<class TFixedImage , class TMovingImage >
typedef Superclass::TransformPointer itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::TransformPointer

◆ TransformType

template<class TFixedImage , class TMovingImage >
typedef Superclass::TransformType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::TransformType

Constructor & Destructor Documentation

◆ AdvancedKappaStatisticImageToImageMetric() [1/2]

template<class TFixedImage , class TMovingImage >
itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::AdvancedKappaStatisticImageToImageMetric ( )
protected

◆ ~AdvancedKappaStatisticImageToImageMetric()

template<class TFixedImage , class TMovingImage >
itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::~AdvancedKappaStatisticImageToImageMetric ( )
overrideprotected

◆ AdvancedKappaStatisticImageToImageMetric() [2/2]

template<class TFixedImage , class TMovingImage >
itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::AdvancedKappaStatisticImageToImageMetric ( const Self )
private

Member Function Documentation

◆ AccumulateDerivativesThreaderCallback()

template<class TFixedImage , class TMovingImage >
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::AccumulateDerivativesThreaderCallback ( void *  arg)
staticprotected

AccumulateDerivatives threader callback function

◆ AfterThreadedGetValueAndDerivative()

template<class TFixedImage , class TMovingImage >
void itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::AfterThreadedGetValueAndDerivative ( MeasureType value,
DerivativeType derivative 
) const
inlineoverrideprotectedvirtual

Gather the values and derivatives from all threads

Reimplemented from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >.

◆ ComplementOff()

template<class TFixedImage , class TMovingImage >
virtual void itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::ComplementOff ( )
virtual

◆ ComplementOn()

template<class TFixedImage , class TMovingImage >
virtual void itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::ComplementOn ( )
virtual

◆ ComputeGradient()

template<class TFixedImage , class TMovingImage >
void itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::ComputeGradient ( void  )
override

Computes the moving gradient image dM/dx.

◆ GetClassName()

template<class TFixedImage , class TMovingImage >
virtual const char * itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >.

Reimplemented in elastix::AdvancedKappaStatisticMetric< TElastix >.

◆ GetComplement()

template<class TFixedImage , class TMovingImage >
virtual const bool & itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GetComplement ( )
virtual

◆ GetDerivative()

template<class TFixedImage , class TMovingImage >
void itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GetDerivative ( const TransformParametersType parameters,
DerivativeType derivative 
) const
override

Get the derivatives of the match measure.

◆ GetEpsilon()

template<class TFixedImage , class TMovingImage >
virtual const RealType & itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GetEpsilon ( )
virtual

◆ GetForegroundValue()

template<class TFixedImage , class TMovingImage >
virtual const RealType & itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GetForegroundValue ( )
virtual

◆ GetValue()

template<class TFixedImage , class TMovingImage >
MeasureType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GetValue ( const TransformParametersType parameters) const
override

Get the value for single valued optimizers.

◆ GetValueAndDerivative()

template<class TFixedImage , class TMovingImage >
void itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GetValueAndDerivative ( const TransformParametersType parameters,
MeasureType Value,
DerivativeType Derivative 
) const
override

◆ GetValueAndDerivativeSingleThreaded()

template<class TFixedImage , class TMovingImage >
virtual void itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::GetValueAndDerivativeSingleThreaded ( const TransformParametersType parameters,
MeasureType Value,
DerivativeType Derivative 
) const
virtual

Get value and derivatives for multiple valued optimizers.

◆ InitializeThreadingParameters()

template<class TFixedImage , class TMovingImage >
void itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::InitializeThreadingParameters ( void  ) const
overrideprotectedvirtual

Initialize some multi-threading related parameters. Overrides function in AdvancedImageToImageMetric, because here we use other parameters.

Reimplemented from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >.

◆ itkAlignedTypedef()

template<class TFixedImage , class TMovingImage >
itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::itkAlignedTypedef ( ITK_CACHE_LINE_ALIGNMENT  ,
PaddedKappaGetValueAndDerivativePerThreadStruct  ,
AlignedKappaGetValueAndDerivativePerThreadStruct   
)
private

◆ itkPadStruct()

template<class TFixedImage , class TMovingImage >
itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::itkPadStruct ( ITK_CACHE_LINE_ALIGNMENT  ,
KappaGetValueAndDerivativePerThreadStruct  ,
PaddedKappaGetValueAndDerivativePerThreadStruct   
)
private

◆ itkStaticConstMacro() [1/2]

template<class TFixedImage , class TMovingImage >
itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::itkStaticConstMacro ( FixedImageDimension  ,
unsigned int  ,
FixedImageType::ImageDimension   
)

The fixed image dimension.

◆ itkStaticConstMacro() [2/2]

template<class TFixedImage , class TMovingImage >
itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::itkStaticConstMacro ( MovingImageDimension  ,
unsigned int  ,
MovingImageType::ImageDimension   
)

The moving image dimension.

◆ New()

template<class TFixedImage , class TMovingImage >
static Pointer itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::New ( )
static

Method for creation through the object factory.

◆ operator=()

template<class TFixedImage , class TMovingImage >
void itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::operator= ( const Self )
private

◆ PrintSelf()

template<class TFixedImage , class TMovingImage >
void itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotected

PrintSelf.

◆ SetComplement()

template<class TFixedImage , class TMovingImage >
virtual void itk::AdvancedKappaStatisticImageToImageMetric< 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().

◆ SetEpsilon()

template<class TFixedImage , class TMovingImage >
virtual void itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::SetEpsilon ( RealType  _arg)
virtual

Set the precision.

◆ SetForegroundValue()

template<class TFixedImage , class TMovingImage >
virtual void itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::SetForegroundValue ( RealType  _arg)
virtual

This method allows the user to set the foreground value. The default value is 1.0.

◆ SetUseForegroundValue()

template<class TFixedImage , class TMovingImage >
virtual void itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::SetUseForegroundValue ( bool  _arg)
virtual

Select which kind of kappa to compute: 1) compare with a foreground value 2) compare if larger than zero

◆ ThreadedGetValueAndDerivative()

template<class TFixedImage , class TMovingImage >
void itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::ThreadedGetValueAndDerivative ( ThreadIdType  threadID)
inlineoverrideprotectedvirtual

Get value and derivatives for each thread.

Reimplemented from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >.

◆ UpdateValueAndDerivativeTerms()

template<class TFixedImage , class TMovingImage >
void itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::UpdateValueAndDerivativeTerms ( const RealType fixedImageValue,
const RealType movingImageValue,
std::vcl_size_t &  fixedForegroundArea,
std::vcl_size_t &  movingForegroundArea,
std::vcl_size_t &  intersection,
const DerivativeType imageJacobian,
const NonZeroJacobianIndicesType nzji,
DerivativeType sum1,
DerivativeType sum2 
) const
protected

Compute a pixel's contribution to the measure and derivatives; Called by GetValueAndDerivative().

Field Documentation

◆ m_Complement

template<class TFixedImage , class TMovingImage >
bool itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::m_Complement
private

◆ m_Epsilon

template<class TFixedImage , class TMovingImage >
RealType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::m_Epsilon
private

◆ m_ForegroundValue

template<class TFixedImage , class TMovingImage >
RealType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::m_ForegroundValue
private

◆ m_KappaGetValueAndDerivativePerThreadVariables

template<class TFixedImage , class TMovingImage >
AlignedKappaGetValueAndDerivativePerThreadStruct* itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::m_KappaGetValueAndDerivativePerThreadVariables
mutableprivate

◆ m_KappaGetValueAndDerivativePerThreadVariablesSize

template<class TFixedImage , class TMovingImage >
ThreadIdType itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::m_KappaGetValueAndDerivativePerThreadVariablesSize
mutableprivate

◆ m_UseForegroundValue

template<class TFixedImage , class TMovingImage >
bool itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >::m_UseForegroundValue
private


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo