Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::MITKRegistrationHelper Class Reference

Static utility class providing helper methods for working with MatchPoint registrations in MITK. More...

#include <mitkRegistrationHelper.h>

Public Types

typedef ::itk::ScalableAffineTransform< ::mitk::ScalarType, 3 > Affine3DTransformType
 3D scalable affine transform type used for matrix extraction. More...
 
typedef ::map::core::Registration< 3, 3 > Registration3DType
 3D-to-3D MatchPoint registration type. More...
 
typedef ::map::core::RegistrationBase RegistrationBaseType
 Base type of all MatchPoint registrations. More...
 

Static Public Member Functions

static Affine3DTransformType::Pointer getAffineMatrix (const mitk::MAPRegistrationWrapper *wrapper, bool inverseKernel)
 Extracts the affine transformation matrix from a registration wrapper's kernel. More...
 
static Affine3DTransformType::Pointer getAffineMatrix (const RegistrationBaseType *registration, bool inverseKernel)
 Extracts the affine transformation matrix from a MatchPoint registration's kernel. More...
 
static bool is3D (const mitk::MAPRegistrationWrapper *wrapper)
 Checks whether the given registration wrapper represents a 3D-to-3D registration. More...
 
static bool is3D (const RegistrationBaseType *regBase)
 Checks whether the given MatchPoint registration is a 3D-to-3D registration. More...
 
static bool IsRegNode (const mitk::DataNode *node)
 Checks whether the given DataNode contains a MatchPoint registration. More...
 
static NodePredicateBase::ConstPointer RegNodePredicate ()
 Returns a node predicate that identifies nodes containing MatchPoint registrations. More...
 
static NodePredicateBase::ConstPointer ImageNodePredicate ()
 Returns a node predicate that identifies nodes containing images. More...
 
static NodePredicateBase::ConstPointer PointSetNodePredicate ()
 Returns a node predicate that identifies nodes containing point sets. More...
 

Detailed Description

Static utility class providing helper methods for working with MatchPoint registrations in MITK.

MITKRegistrationHelper offers convenience functions for extracting affine matrices from registrations, checking registration dimensionality, identifying registration nodes in the data storage, and obtaining node predicates for common data types.

See also
mitk::MAPRegistrationWrapper, mitk::ImageMappingHelper, mitk::PointSetMappingHelper

Definition at line 44 of file mitkRegistrationHelper.h.

Member Typedef Documentation

◆ Affine3DTransformType

typedef ::itk::ScalableAffineTransform< ::mitk::ScalarType,3 > mitk::MITKRegistrationHelper::Affine3DTransformType

3D scalable affine transform type used for matrix extraction.

Definition at line 49 of file mitkRegistrationHelper.h.

◆ Registration3DType

typedef ::map::core::Registration<3,3> mitk::MITKRegistrationHelper::Registration3DType

3D-to-3D MatchPoint registration type.

Definition at line 51 of file mitkRegistrationHelper.h.

◆ RegistrationBaseType

typedef ::map::core::RegistrationBase mitk::MITKRegistrationHelper::RegistrationBaseType

Base type of all MatchPoint registrations.

Definition at line 53 of file mitkRegistrationHelper.h.

Member Function Documentation

◆ getAffineMatrix() [1/2]

static Affine3DTransformType::Pointer mitk::MITKRegistrationHelper::getAffineMatrix ( const mitk::MAPRegistrationWrapper *  wrapper,
bool  inverseKernel 
)
static

Extracts the affine transformation matrix from a registration wrapper's kernel.

Parameters
[in]wrapperPointer to the registration wrapper.
[in]inverseKernelIf true, extract from the inverse kernel; if false, from the direct kernel.
Returns
Pointer to the extracted affine transform, or nullptr if extraction is not possible (e.g. the kernel is not affine-decomposable).
Precondition
wrapper must point to a valid instance.
wrapper must wrap a 3D-3D registration.

◆ getAffineMatrix() [2/2]

static Affine3DTransformType::Pointer mitk::MITKRegistrationHelper::getAffineMatrix ( const RegistrationBaseType *  registration,
bool  inverseKernel 
)
static

Extracts the affine transformation matrix from a MatchPoint registration's kernel.

Parameters
[in]registrationPointer to the MatchPoint registration base.
[in]inverseKernelIf true, extract from the inverse kernel; if false, from the direct kernel.
Returns
Pointer to the extracted affine transform, or nullptr if extraction is not possible.
Precondition
registration must point to a valid 3D-3D registration instance.

◆ ImageNodePredicate()

static NodePredicateBase::ConstPointer mitk::MITKRegistrationHelper::ImageNodePredicate ( )
static

Returns a node predicate that identifies nodes containing images.

Returns
A constant pointer to a NodePredicateBase matching mitk::Image data.

◆ is3D() [1/2]

static bool mitk::MITKRegistrationHelper::is3D ( const mitk::MAPRegistrationWrapper *  wrapper)
static

Checks whether the given registration wrapper represents a 3D-to-3D registration.

Parameters
[in]wrapperPointer to the registration wrapper.
Returns
True if both moving and target dimensions are 3, false otherwise or if wrapper is nullptr.

◆ is3D() [2/2]

static bool mitk::MITKRegistrationHelper::is3D ( const RegistrationBaseType *  regBase)
static

Checks whether the given MatchPoint registration is a 3D-to-3D registration.

Parameters
[in]regBasePointer to the MatchPoint registration base.
Returns
True if both moving and target dimensions are 3, false otherwise or if regBase is nullptr.

◆ IsRegNode()

static bool mitk::MITKRegistrationHelper::IsRegNode ( const mitk::DataNode *  node)
static

Checks whether the given DataNode contains a MatchPoint registration.

Parameters
[in]nodePointer to the node to be checked.
Returns
True if the node contains a MAPRegistrationWrapper. False if node is nullptr or does not contain a registration wrapper.

◆ PointSetNodePredicate()

static NodePredicateBase::ConstPointer mitk::MITKRegistrationHelper::PointSetNodePredicate ( )
static

Returns a node predicate that identifies nodes containing point sets.

Returns
A constant pointer to a NodePredicateBase matching mitk::PointSet data.

◆ RegNodePredicate()

static NodePredicateBase::ConstPointer mitk::MITKRegistrationHelper::RegNodePredicate ( )
static

Returns a node predicate that identifies nodes containing MatchPoint registrations.

Returns
A constant pointer to a NodePredicateBase matching MAPRegistrationWrapper data.

The documentation for this class was generated from the following file: