Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::MultiLabelSegmentationMappingHelper Namespace Reference

Namespace providing helper functions for mapping multi-label segmentations using MatchPoint registrations. More...

Typedefs

typedef ::map::core::RegistrationBase RegistrationType
 MatchPoint registration base type. More...
 
typedef ::mitk::MAPRegistrationWrapper MITKRegistrationType
 MITK wrapper type for MatchPoint registrations. More...
 
typedef ::mitk::BaseGeometry ResultGeometryType
 Geometry type used for the result image grid specification. More...
 

Functions

MITKMATCHPOINTREGISTRATION_EXPORT MultiLabelSegmentation::Pointer map (const MultiLabelSegmentation *input, const RegistrationType *registration, bool throwOnOutOfInputAreaError=false, const ResultGeometryType *resultGeometry=nullptr, bool throwOnMappingError=true, const MultiLabelSegmentation::LabelValueType &errorValue=0)
 Maps a multi-label segmentation image using a MatchPoint registration. More...
 
MITKMATCHPOINTREGISTRATION_EXPORT MultiLabelSegmentation::Pointer map (const MultiLabelSegmentation *input, const MITKRegistrationType *registration, bool throwOnOutOfInputAreaError=false, const ResultGeometryType *resultGeometry=nullptr, bool throwOnMappingError=true, const MultiLabelSegmentation::LabelValueType &errorValue=0)
 Maps a multi-label segmentation using a MITK registration wrapper. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 

Detailed Description

Namespace providing helper functions for mapping multi-label segmentations using MatchPoint registrations.

Each label is mapped individually using nearest-neighbor interpolation to preserve label integrity.

See also
mitk::ImageMappingHelper, mitk::MAPRegistrationWrapper, mitk::LabelSetImage

Typedef Documentation

◆ MITKRegistrationType

MITK wrapper type for MatchPoint registrations.

Definition at line 40 of file mitkMultiLabelSegmentationMappingHelper.h.

◆ RegistrationType

typedef ::map::core::RegistrationBase mitk::MultiLabelSegmentationMappingHelper::RegistrationType

MatchPoint registration base type.

Definition at line 38 of file mitkMultiLabelSegmentationMappingHelper.h.

◆ ResultGeometryType

Geometry type used for the result image grid specification.

Definition at line 43 of file mitkMultiLabelSegmentationMappingHelper.h.

Function Documentation

◆ map() [1/2]

MITKMATCHPOINTREGISTRATION_EXPORT MultiLabelSegmentation::Pointer mitk::MultiLabelSegmentationMappingHelper::map ( const MultiLabelSegmentation *  input,
const MITKRegistrationType *  registration,
bool  throwOnOutOfInputAreaError = false,
const ResultGeometryType *  resultGeometry = nullptr,
bool  throwOnMappingError = true,
const MultiLabelSegmentation::LabelValueType &  errorValue = 0 
)

Maps a multi-label segmentation using a MITK registration wrapper. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[in]inputMulti-label segmentation to be mapped.
[in]registrationPointer to the MITK registration wrapper to use.
[in]throwOnOutOfInputAreaErrorIf true, throws when the input does not cover the full result region.
[in]resultGeometryGeometry defining the output grid, or nullptr to use the input geometry.
[in]throwOnMappingErrorIf true, throws when the registration does not cover the result region.
[in]errorValueLabel value used for voxels where mapping fails.
Returns
Smart pointer to the resulting mapped multi-label segmentation.

◆ map() [2/2]

MITKMATCHPOINTREGISTRATION_EXPORT MultiLabelSegmentation::Pointer mitk::MultiLabelSegmentationMappingHelper::map ( const MultiLabelSegmentation *  input,
const RegistrationType *  registration,
bool  throwOnOutOfInputAreaError = false,
const ResultGeometryType *  resultGeometry = nullptr,
bool  throwOnMappingError = true,
const MultiLabelSegmentation::LabelValueType &  errorValue = 0 
)

Maps a multi-label segmentation image using a MatchPoint registration.

Parameters
[in]inputMulti-label segmentation to be mapped.
[in]registrationPointer to the MatchPoint registration to use.
[in]throwOnOutOfInputAreaErrorIf true, throws when the input does not cover the full result region.
[in]resultGeometryGeometry defining the output grid. If nullptr, the input geometry is used.
[in]throwOnMappingErrorIf true, throws when the registration does not cover the result region.
[in]errorValueLabel value used for voxels where mapping fails (when not throwing).
Returns
Smart pointer to the resulting mapped multi-label segmentation.
Precondition
input must be valid.
registration must be valid.
Dimensionality of the registration must match the input image.