Static utility class providing helper methods for working with MatchPoint registrations in MITK.
More...
#include <mitkRegistrationHelper.h>
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.
◆ Affine3DTransformType
◆ Registration3DType
◆ RegistrationBaseType
◆ 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] | wrapper | Pointer to the registration wrapper. |
| [in] | inverseKernel | If 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] | registration | Pointer to the MatchPoint registration base. |
| [in] | inverseKernel | If 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]
Checks whether the given registration wrapper represents a 3D-to-3D registration.
- Parameters
-
| [in] | wrapper | Pointer to the registration wrapper. |
- Returns
- True if both moving and target dimensions are 3, false otherwise or if wrapper is nullptr.
◆ is3D() [2/2]
Checks whether the given MatchPoint registration is a 3D-to-3D registration.
- Parameters
-
| [in] | regBase | Pointer 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] | node | Pointer 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 |
◆ RegNodePredicate()
| static NodePredicateBase::ConstPointer mitk::MITKRegistrationHelper::RegNodePredicate |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file: