13 #ifndef QmitkRegistrationJob_h
14 #define QmitkRegistrationJob_h
21 #include <itkCommand.h>
30 #include <mapDeploymentDLLInfo.h>
31 #include <mapIterativeAlgorithmInterface.h>
32 #include <mapMultiResRegistrationAlgorithmInterface.h>
33 #include <mapRegistrationAlgorithmBase.h>
34 #include <mapRegistrationBase.h>
119 void LevelChanged(QString info,
bool hasLevelCount,
unsigned long currentLevel);
#define MITKMATCHPOINTREGISTRATIONUI_EXPORT
QRunnable job that performs image registration using a MatchPoint algorithm in a background thread.
~QmitkRegistrationJob() override
Destructor. Removes the algorithm event observer.
mitk::NodeUIDType m_TargetDataUID
UID of the target data node for provenance tracking.
::map::algorithm::RegistrationAlgorithmBase::Pointer m_spLoadedAlgorithm
::map::core::RegistrationBase::Pointer m_spResultRegistration
void LevelChanged(QString info, bool hasLevelCount, unsigned long currentLevel)
Emitted when the algorithm changes its multi-resolution level.
void run() override
Executes the registration algorithm.
void Error(QString err)
Emitted when an error occurs during registration.
mitk::DataNode::Pointer m_spRegNode
unsigned long m_ObserverID
void Finished()
Emitted when the job has completed (regardless of success or failure).
bool m_MapEntity
If true, the job also maps the moving entity using the computed registration.
mitk::BaseData::ConstPointer m_spTargetData
The target (fixed) data for the registration.
mitk::Image::ConstPointer m_spTargetMask
Optional mask image for the target data.
mitk::NodeUIDType m_MovingDataUID
UID of the moving data node for provenance tracking.
std::string m_JobName
Human-readable name for the registration job.
void AlgorithmInfo(QString info)
Emitted for general algorithm information messages.
mitk::NodeUIDType m_MovingMaskDataUID
UID of the moving mask data node for provenance tracking.
void AlgorithmStatusChanged(QString info)
Emitted when the algorithm status changes (e.g., initializing, starting, stopping).
::itk::MemberCommand< QmitkRegistrationJob >::Pointer m_spCommand
::map::algorithm::facet::IterativeAlgorithmInterface IIterativeAlgorithm
::map::algorithm::facet::MultiResRegistrationAlgorithmInterface IMultiResAlgorithm
void RegResultIsAvailable(mitk::MAPRegistrationWrapper::Pointer spResultRegistration, const QmitkRegistrationJob *pJob)
Emitted when the registration result is available.
void AlgorithmIterated(QString info, bool hasIterationCount, unsigned long currentIteration)
Emitted when the algorithm completes an iteration.
mitk::BaseData::ConstPointer m_spMovingData
The moving data for the registration.
const mitk::Image * GetMovingDataAsImage() const
void OnMapAlgorithmEvent(::itk::Object *, const itk::EventObject &event)
mitk::NodeUIDType m_TargetMaskDataUID
UID of the target mask data node for provenance tracking.
bool m_StoreReg
If true, the registration result is stored.
mitk::Image::ConstPointer m_spMovingMask
Optional mask image for the moving data.
bool m_ErrorOccured
Flag indicating whether an error occurred during execution.
mitk::DataNode::Pointer m_spMappedImageNode
const mitk::Image * GetTargetDataAsImage() const
const ::map::algorithm::RegistrationAlgorithmBase * GetLoadedAlgorithm() const
Returns the registration algorithm used by this job.
QmitkRegistrationJob(::map::algorithm::RegistrationAlgorithmBase *pAlgorithm)
Constructs the registration job with the given algorithm.
Image class for storing multi-dimensional medical image data.
std::string NodeUIDType
Type alias for node/data UID strings.