13 #ifndef QmitkMappingJob_h
14 #define QmitkMappingJob_h
21 #include <itkCommand.h>
24 #include <mapRegistrationBase.h>
#define MITKMATCHPOINTREGISTRATIONUI_EXPORT
QRunnable job that maps (transforms) data using a MatchPoint registration in a background thread.
mitk::BaseGeometry::Pointer m_spRefGeometry
Optional reference geometry for image mapping. If null, the registration determines the output geomet...
~QmitkMappingJob() override
Destructor.
mitk::DataNode::Pointer m_spRegNode
Data node containing the mitk::MAPRegistrationWrapper to use for mapping.
const mitk::PointSet * GetInputDataAsPointSet() const
::itk::MemberCommand< QmitkMappingJob >::Pointer m_spCommand
mitk::NodeUIDType m_InputDataUID
UID of the input data node for provenance tracking.
const map::core::RegistrationBase * GetRegistration() const
Returns the MatchPoint registration extracted from the registration data node.
void OnMapAlgorithmEvent(::itk::Object *, const itk::EventObject &event)
const mitk::Image * GetInputDataAsImage() const
QmitkMappingJob()
Default constructor. Initializes with default mapping settings.
void Error(QString err)
Emitted when an error occurs during mapping.
mitk::BaseData::Pointer m_spMappedData
void MapResultIsAvailable(mitk::BaseData::Pointer spMappedData, const QmitkMappingJob *job)
Emitted when the mapped result data is available.
mitk::BaseData::ConstPointer m_spInputData
The input data to be mapped (image, point set, or multi-label segmentation).
void run() override
Executes the mapping or geometry refinement operation.
void AlgorithmInfo(QString info)
Emitted for general MatchPoint algorithm event messages during mapping.
unsigned long m_ObserverID
Image class for storing multi-dimensional medical image data.
Data structure which stores a set of points.
std::string NodeUIDType
Type alias for node/data UID strings.
Settings structure controlling the behavior of a mapping (image/point set transformation) job.
bool m_doGeometryRefinement
If true, the mapper refines the image geometry instead of performing a full pixel-wise mapping.
double m_paddingValue
Value assigned to undefined pixels. Only relevant if m_allowUndefPixels is true.
std::string m_MappedName
Display name for the mapped result.
std::string m_InterpolatorLabel
Human-readable display name of the selected interpolation method.
double m_errorValue
Value assigned to unregistered pixels. Only relevant if m_allowUnregPixels is true.
bool m_allowUndefPixels
If true, undefined pixels (outside the field of view) are allowed and filled with m_paddingValue....
mitk::ImageMappingInterpolator::Type m_InterpolatorType
Interpolation method used for image mapping. Only relevant for images when m_doGeometryRefinement is ...
bool m_allowUnregPixels
If true, pixels not covered by the registration are allowed and filled with m_errorValue....
QmitkMappingJobSettings()
Constructs default mapping job settings.