Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
mitk::PointSetMappingHelper Namespace Reference

Typedefs

typedef ::map::core::RegistrationBase RegistrationType
 
typedef ::mitk::MAPRegistrationWrapper MITKRegistrationType
 

Functions

MITKMATCHPOINTREGISTRATION_EXPORT ::map::core::continuous::Elements< 3 >::InternalPointSetType::Pointer ConvertPointSetMITKtoMAP (const mitk::PointSet::DataType *mitkSet)
 
MITKMATCHPOINTREGISTRATION_EXPORT ::mitk::PointSet::Pointer map (const ::mitk::PointSet *input, const RegistrationType *registration, int timeStep=-1, bool throwOnMappingError=true, const ::mitk::PointSet::PointDataType &errorPointValue=::mitk::PointSet::PointDataType())
 
MITKMATCHPOINTREGISTRATION_EXPORT ::mitk::PointSet::Pointer map (const ::mitk::PointSet *input, const MITKRegistrationType *registration, int timeStep=-1, bool throwOnMappingError=true, const ::mitk::PointSet::PointDataType &errorPointValue=::mitk::PointSet::PointDataType())
 

Typedef Documentation

◆ MITKRegistrationType

◆ RegistrationType

typedef ::map::core::RegistrationBase mitk::PointSetMappingHelper::RegistrationType

Definition at line 29 of file mitkPointSetMappingHelper.h.

Function Documentation

◆ ConvertPointSetMITKtoMAP()

MITKMATCHPOINTREGISTRATION_EXPORT ::map::core::continuous::Elements<3>::InternalPointSetType::Pointer mitk::PointSetMappingHelper::ConvertPointSetMITKtoMAP ( const mitk::PointSet::DataType mitkSet)

Helper that converts the data of an mitk point set into the default point set type of matchpoint.

◆ map() [1/2]

MITKMATCHPOINTREGISTRATION_EXPORT ::mitk::PointSet::Pointer mitk::PointSetMappingHelper::map ( const ::mitk::PointSet input,
const MITKRegistrationType registration,
int  timeStep = -1,
bool  throwOnMappingError = true,
const ::mitk::PointSet::PointDataType errorPointValue = ::mitk::PointSet::PointDataType() 
)

Helper that maps a given input point set This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ map() [2/2]

MITKMATCHPOINTREGISTRATION_EXPORT ::mitk::PointSet::Pointer mitk::PointSetMappingHelper::map ( const ::mitk::PointSet input,
const RegistrationType registration,
int  timeStep = -1,
bool  throwOnMappingError = true,
const ::mitk::PointSet::PointDataType errorPointValue = ::mitk::PointSet::PointDataType() 
)

Helper that maps a given input point set

Parameters
inputPoint set that should be mapped.
registrationPointer to the registration instance that should be used for mapping
timeStepIndicates which time step of the point set should be mapped (the rest will just be copied). -1 (default) indicates that all time steps should be mapped.
throwOnMappingErrorIndicates if mapping should fail with an exception (true), if the registration does not cover/support the whole requested region for mapping into the result image. if set to false, points that cause an mapping error will be transfered without mapping but get the passed errorPointValue as data to indicate unmappable points;
errorPointValueIndicates the point data that should be used if an mapping error occurs (and throwOnMappingError is false).
Precondition
input must be valid
registration must be valid
timeStep must be a valid time step of input or -1
Dimensionality of the registration must match with the input imageinput must be valid
Remarks
Depending in the settings of throwOnMappingError it may also throw due to inconsistencies in the mapping process. See parameter description.
Returns
Pointer to the resulting mapped point set