|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Widget for configuring image mapping / geometry refinement settings. More...
#include <QmitkMapperSettingsWidget.h>


Public Slots | |
| void | SetMaskMode (bool activeMask) |
| Enables or disables mask mode. More... | |
| void | AllowSampling (bool allow) |
| Enables or disables the super/sub-sampling controls. More... | |
Public Member Functions | |
| QmitkMapperSettingsWidget (QWidget *parent=nullptr) | |
| Constructs the mapper settings widget. More... | |
| ~QmitkMapperSettingsWidget () override | |
| Destructor. More... | |
| void | ConfigureJobSettings (QmitkMappingJobSettings *settings) |
| Populates a QmitkMappingJobSettings instance from the current widget state. More... | |
Protected Slots | |
| void | OnLinkSampleFactorChecked () |
| void | OnXFactorChanged (double d) |
Protected Attributes | |
| std::unique_ptr< Ui::QmitkMapperSettingsWidget > | m_Controls |
| bool | m_MaskMode |
| bool | m_allowSampling |
Widget for configuring image mapping / geometry refinement settings.
This widget allows the user to configure how images are mapped using a registration, including interpolation method, handling of undefined and unregistered pixels, padding/error values, and optional super/sub-sampling factors (with linked or independent axis control).
The widget supports a "mask mode" that restricts interpolation to nearest-neighbour only, which is required when mapping segmentation masks to preserve label integrity.
Use ConfigureJobSettings() to transfer the current widget state into a QmitkMappingJobSettings instance before starting a mapping job.
Definition at line 45 of file QmitkMapperSettingsWidget.h.
| QmitkMapperSettingsWidget::QmitkMapperSettingsWidget | ( | QWidget * | parent = nullptr | ) |
Constructs the mapper settings widget.
| [in] | parent | Optional parent widget. |
|
override |
Destructor.
|
slot |
Enables or disables the super/sub-sampling controls.
When disabled, the sampling factor group is hidden from the UI.
| [in] | allow | If true, sampling controls are shown and available; if false, they are hidden. |
| void QmitkMapperSettingsWidget::ConfigureJobSettings | ( | QmitkMappingJobSettings * | settings | ) |
Populates a QmitkMappingJobSettings instance from the current widget state.
Copies the interpolation type, undefined/unregistered pixel handling, padding value, and error value from the UI controls into the provided settings object.
| [in,out] | settings | Pointer to the settings instance to configure. |
settings must not be nullptr.
|
protectedslot |
|
protectedslot |
|
slot |
Enables or disables mask mode.
In mask mode, the interpolation method is forced to nearest-neighbour and error/padding values are set to 0. This is required when mapping segmentation masks to avoid interpolation artifacts.
| [in] | activeMask | If true, activates mask mode; if false, deactivates it and resets interpolation to linear. |
|
protected |
Definition at line 101 of file QmitkMapperSettingsWidget.h.
|
protected |
Definition at line 99 of file QmitkMapperSettingsWidget.h.
|
protected |
Definition at line 100 of file QmitkMapperSettingsWidget.h.