Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkMultiLabelPresetHelper.h File Reference

Go to the source code of this file.

Functions

void MITKSEGMENTATIONUI_EXPORT QmitkSaveMultiLabelPreset (const mitk::MultiLabelSegmentation *segmentation)
 Saves the label information of a segmentation as a preset file. More...
 
void MITKSEGMENTATIONUI_EXPORT QmitkLoadMultiLabelPreset (const std::vector< mitk::MultiLabelSegmentation::Pointer > &segmentations)
 Loads a label preset and imposes it on all passed segmentations. More...
 

Function Documentation

◆ QmitkLoadMultiLabelPreset()

void MITKSEGMENTATIONUI_EXPORT QmitkLoadMultiLabelPreset ( const std::vector< mitk::MultiLabelSegmentation::Pointer > &  segmentations)

Loads a label preset and imposes it on all passed segmentations.

Triggers a file dialog to specify the location where to load the preset.

Parameters
segmentationsVector of pointers to the segmentations that should be modified according to the preset. Invalid segmentations (nullptr) will be ignored.

◆ QmitkSaveMultiLabelPreset()

void MITKSEGMENTATIONUI_EXPORT QmitkSaveMultiLabelPreset ( const mitk::MultiLabelSegmentation *  segmentation)

Saves the label information of a segmentation as a preset file.

Triggers a file dialog to specify the location where to store the preset.

Precondition
segmentation must be a valid pointer.
Parameters
segmentationPointer to the segmentation that serves as template for the preset.