Medical Imaging Interaction Toolkit  2016.11.0
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

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

Definition at line 33 of file mitkPointSetMappingHelper.h.

Function Documentation

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.

Definition at line 25 of file mitkPointSetMappingHelper.cpp.

References mitk::PointSet::PointDataType::id, and mitk::New().

Referenced by map(), and mitk::MITKAlgorithmHelper::SetData().

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

Definition at line 52 of file mitkPointSetMappingHelper.cpp.

References ConvertPointSetMITKtoMAP(), mitkThrow, and mitk::New().

Referenced by QmitkMappingJob::run().

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.

Definition at line 130 of file mitkPointSetMappingHelper.cpp.

References mitk::MAPRegistrationWrapper::GetRegistration(), mitk::ImageMappingHelper::map(), and mitkThrow.