Medical Imaging Interaction Toolkit  2023.12.99-f298153c
Medical Imaging Interaction Toolkit
QmitkMultiLabelPresetHelper.h File Reference

Go to the source code of this file.

Functions

void MITKSEGMENTATIONUI_EXPORT QmitkSaveMultiLabelPreset (const mitk::LabelSetImage *segmentation)
 Helper function to save the label information of a passed segmentation as preset. More...
 
void MITKSEGMENTATIONUI_EXPORT QmitkLoadMultiLabelPreset (const std::vector< mitk::LabelSetImage::Pointer > &segmentations)
 Helper function to loads a label preset and imposes it on all passed segmentations. More...
 

Function Documentation

◆ QmitkLoadMultiLabelPreset()

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

Helper function to loads a label preset and imposes it on all passed segmentations.

Helper function 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::LabelSetImage segmentation)

Helper function to save the label information of a passed segmentation as preset.

Helper function 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.