QRunnable job that performs frame-by-frame registration of a 4D image in a background thread.
More...
#include <QmitkFramesRegistrationJob.h>
|
| void | Finished () |
| | Emitted when the job has completed (regardless of success or failure). More...
|
| |
| void | Error (QString err) |
| | Emitted when an error occurs during registration. More...
|
| |
| void | ResultIsAvailable (mitk::Image::Pointer spResult, const QmitkFramesRegistrationJob *pJob) |
| | Emitted when the registered result image is available. More...
|
| |
| void | AlgorithmIterated (QString info, bool hasIterationCount, unsigned long currentIteration) |
| | Emitted when the algorithm completes an iteration. More...
|
| |
| void | LevelChanged (QString info, bool hasLevelCount, unsigned long currentLevel) |
| | Emitted when the algorithm changes its multi-resolution level. More...
|
| |
| void | AlgorithmStatusChanged (QString info) |
| | Emitted when the algorithm status changes (e.g., initializing, starting, stopping). More...
|
| |
| void | AlgorithmInfo (QString info) |
| | Emitted for general algorithm information messages. More...
|
| |
| void | FrameProcessed (double progress) |
| | Emitted during frame processing with overall progress. More...
|
| |
| void | FrameRegistered (double progress) |
| | Emitted when a single frame has been registered. More...
|
| |
| void | FrameMapped (double progress) |
| | Emitted when a single frame has been mapped. More...
|
| |
QRunnable job that performs frame-by-frame registration of a 4D image in a background thread.
This job registers individual time frames of a 4D image using a MatchPoint registration algorithm and maps the registered frames back into a single result image. It is typically used by GUI plugins to keep the UI responsive while the potentially long-running registration and mapping operations proceed in a QThreadPool.
The job inherits mapping settings from QmitkMappingJobSettings (interpolation, padding, error handling) and observes algorithm events to relay progress and status information via Qt signals.
- See also
- QmitkRegistrationJob, QmitkMappingJob, QmitkMappingJobSettings
Definition at line 56 of file QmitkFramesRegistrationJob.h.
◆ QmitkFramesRegistrationJob()
| QmitkFramesRegistrationJob::QmitkFramesRegistrationJob |
( |
map::algorithm::RegistrationAlgorithmBase * |
pAlgorithm | ) |
|
Constructs the frames registration job with the given algorithm.
Registers an ITK observer on the algorithm to receive algorithm events.
- Parameters
-
| [in] | pAlgorithm | Pointer to the MatchPoint registration algorithm to use. The job takes shared ownership via a smart pointer. |
- Precondition
- pAlgorithm must not be
nullptr.
◆ ~QmitkFramesRegistrationJob()
| QmitkFramesRegistrationJob::~QmitkFramesRegistrationJob |
( |
| ) |
|
|
override |
Destructor. Removes the algorithm event observer.
◆ AlgorithmInfo
| void QmitkFramesRegistrationJob::AlgorithmInfo |
( |
QString |
info | ) |
|
|
signal |
Emitted for general algorithm information messages.
- Parameters
-
| [in] | info | Information message string. |
◆ AlgorithmIterated
| void QmitkFramesRegistrationJob::AlgorithmIterated |
( |
QString |
info, |
|
|
bool |
hasIterationCount, |
|
|
unsigned long |
currentIteration |
|
) |
| |
|
signal |
Emitted when the algorithm completes an iteration.
- Parameters
-
| [in] | info | Descriptive text about the iteration. |
| [in] | hasIterationCount | True if the algorithm provides an iteration count. |
| [in] | currentIteration | The current iteration number (valid only if hasIterationCount is true). |
◆ AlgorithmStatusChanged
| void QmitkFramesRegistrationJob::AlgorithmStatusChanged |
( |
QString |
info | ) |
|
|
signal |
Emitted when the algorithm status changes (e.g., initializing, starting, stopping).
- Parameters
-
| [in] | info | Status description string. |
◆ Error
| void QmitkFramesRegistrationJob::Error |
( |
QString |
err | ) |
|
|
signal |
Emitted when an error occurs during registration.
- Parameters
-
| [in] | err | Description of the error. |
◆ Finished
| void QmitkFramesRegistrationJob::Finished |
( |
| ) |
|
|
signal |
Emitted when the job has completed (regardless of success or failure).
◆ FrameMapped
| void QmitkFramesRegistrationJob::FrameMapped |
( |
double |
progress | ) |
|
|
signal |
Emitted when a single frame has been mapped.
- Parameters
-
| [in] | progress | Progress value in the range [0, 1]. |
◆ FrameProcessed
| void QmitkFramesRegistrationJob::FrameProcessed |
( |
double |
progress | ) |
|
|
signal |
Emitted during frame processing with overall progress.
- Parameters
-
| [in] | progress | Progress value in the range [0, 1]. |
◆ FrameRegistered
| void QmitkFramesRegistrationJob::FrameRegistered |
( |
double |
progress | ) |
|
|
signal |
Emitted when a single frame has been registered.
- Parameters
-
| [in] | progress | Progress value in the range [0, 1]. |
◆ GetLoadedAlgorithm()
| const map::algorithm::RegistrationAlgorithmBase* QmitkFramesRegistrationJob::GetLoadedAlgorithm |
( |
| ) |
const |
Returns the registration algorithm used by this job.
- Returns
- Const pointer to the loaded MatchPoint registration algorithm.
◆ LevelChanged
| void QmitkFramesRegistrationJob::LevelChanged |
( |
QString |
info, |
|
|
bool |
hasLevelCount, |
|
|
unsigned long |
currentLevel |
|
) |
| |
|
signal |
Emitted when the algorithm changes its multi-resolution level.
- Parameters
-
| [in] | info | Descriptive text about the level change. |
| [in] | hasLevelCount | True if the algorithm provides a level count. |
| [in] | currentLevel | The current level number (valid only if hasLevelCount is true). |
◆ ResultIsAvailable
Emitted when the registered result image is available.
- Parameters
-
| [in] | spResult | The resulting registered 4D image. |
| [in] | pJob | Pointer to this job instance for context. |
◆ run()
| void QmitkFramesRegistrationJob::run |
( |
| ) |
|
|
override |
Executes the frame-by-frame registration and mapping.
Uses mitk::TimeFramesRegistrationHelper to iterate over all time frames (except those in the ignore list), register each frame, and map it according to the configured mapping settings. Emits ResultIsAvailable on success, or Error on failure. Always emits Finished when done.
◆ m_IgnoreList
◆ m_spTargetData
| mitk::BaseData::ConstPointer QmitkFramesRegistrationJob::m_spTargetData |
◆ m_spTargetMask
| mitk::Image::ConstPointer QmitkFramesRegistrationJob::m_spTargetMask |
◆ m_TargetDataUID
◆ m_TargetMaskDataUID
The documentation for this class was generated from the following file: