QRunnable job that maps (transforms) data using a MatchPoint registration in a background thread.
More...
#include <QmitkMappingJob.h>
QRunnable job that maps (transforms) data using a MatchPoint registration in a background thread.
This job applies a registration stored in a mitk::MAPRegistrationWrapper (wrapped in a DataNode) to input data, which can be a mitk::Image, mitk::PointSet, or mitk::MultiLabelSegmentation. The mapping behavior is controlled by the inherited QmitkMappingJobSettings.
When m_doGeometryRefinement is true, the job performs geometry refinement instead of full pixel-wise mapping (only applicable to images).
The job emits MapResultIsAvailable with the transformed data upon success, or Error with a description string upon failure.
- See also
- QmitkMappingJobSettings, QmitkRegistrationJob, QmitkFramesRegistrationJob
Definition at line 100 of file QmitkMappingJob.h.
◆ QmitkMappingJob()
| QmitkMappingJob::QmitkMappingJob |
( |
| ) |
|
Default constructor. Initializes with default mapping settings.
◆ ~QmitkMappingJob()
| QmitkMappingJob::~QmitkMappingJob |
( |
| ) |
|
|
override |
◆ AlgorithmInfo
| void QmitkMappingJob::AlgorithmInfo |
( |
QString |
info | ) |
|
|
signal |
Emitted for general MatchPoint algorithm event messages during mapping.
- Parameters
-
| [in] | info | Information message string. |
◆ Error
| void QmitkMappingJob::Error |
( |
QString |
err | ) |
|
|
signal |
Emitted when an error occurs during mapping.
- Parameters
-
| [in] | err | Description of the error. |
◆ GetInputDataAsImage()
| const mitk::Image* QmitkMappingJob::GetInputDataAsImage |
( |
| ) |
const |
|
protected |
◆ GetInputDataAsPointSet()
| const mitk::PointSet* QmitkMappingJob::GetInputDataAsPointSet |
( |
| ) |
const |
|
protected |
◆ GetRegistration()
| const map::core::RegistrationBase* QmitkMappingJob::GetRegistration |
( |
| ) |
const |
Returns the MatchPoint registration extracted from the registration data node.
- Returns
- Const pointer to the underlying MatchPoint registration.
- Precondition
- m_spRegNode must contain a valid mitk::MAPRegistrationWrapper.
◆ MapResultIsAvailable
| void QmitkMappingJob::MapResultIsAvailable |
( |
mitk::BaseData::Pointer |
spMappedData, |
|
|
const QmitkMappingJob * |
job |
|
) |
| |
|
signal |
Emitted when the mapped result data is available.
- Parameters
-
| [in] | spMappedData | The transformed/mapped data. |
| [in] | job | Pointer to this job instance for context. |
◆ OnMapAlgorithmEvent()
| void QmitkMappingJob::OnMapAlgorithmEvent |
( |
::itk::Object * |
, |
|
|
const itk::EventObject & |
event |
|
) |
| |
|
protected |
◆ run()
| void QmitkMappingJob::run |
( |
| ) |
|
|
override |
Executes the mapping or geometry refinement operation.
Depending on m_doGeometryRefinement, either refines the image geometry or maps the input data (image, point set, or multi-label segmentation) using the stored registration. Emits MapResultIsAvailable on success or Error on failure.
◆ m_InputDataUID
UID of the input data node for provenance tracking.
Definition at line 152 of file QmitkMappingJob.h.
◆ m_ObserverID
| unsigned long QmitkMappingJob::m_ObserverID |
|
protected |
◆ m_spCommand
| ::itk::MemberCommand<QmitkMappingJob>::Pointer QmitkMappingJob::m_spCommand |
|
protected |
◆ m_spInputData
| mitk::BaseData::ConstPointer QmitkMappingJob::m_spInputData |
The input data to be mapped (image, point set, or multi-label segmentation).
Definition at line 149 of file QmitkMappingJob.h.
◆ m_spMappedData
| mitk::BaseData::Pointer QmitkMappingJob::m_spMappedData |
|
protected |
◆ m_spRefGeometry
| mitk::BaseGeometry::Pointer QmitkMappingJob::m_spRefGeometry |
Optional reference geometry for image mapping. If null, the registration determines the output geometry.
Definition at line 155 of file QmitkMappingJob.h.
◆ m_spRegNode
| mitk::DataNode::Pointer QmitkMappingJob::m_spRegNode |
The documentation for this class was generated from the following file: