Medical Imaging Interaction Toolkit  2023.12.99-7a59bd54
Medical Imaging Interaction Toolkit
mitkLabelSetImageHelper.h File Reference

Go to the source code of this file.

Namespaces

 mitk
 Find image slices visible on a given plane.
 
 mitk::LabelSetImageHelper
 

Typedefs

using mitk::LabelSetImageHelper::GroupIDToLabelValueMapType = std::map< mitk::LabelSetImage::GroupIndexType, LabelSetImage::LabelValueVectorType >
 
using mitk::LabelSetImageHelper::LabelClassNameToLabelValueMapType = std::map< std::string, LabelSetImage::LabelValueVectorType >
 

Functions

MITKMULTILABEL_EXPORT mitk::DataNode::Pointer mitk::LabelSetImageHelper::CreateEmptySegmentationNode (const std::string &segmentationName=std::string())
 This function creates and returns a new empty segmentation data node. More...
 
MITKMULTILABEL_EXPORT mitk::DataNode::Pointer mitk::LabelSetImageHelper::CreateNewSegmentationNode (const DataNode *referenceNode, const Image *initialSegmentationImage=nullptr, const std::string &segmentationName=std::string())
 This function creates and returns a new data node with a new empty segmentation data structure. The segmentation node is named according to the given reference data node, otherwise a name is passed explicitly. Some properties are set to ensure a proper setup segmentation and node (e.g. link the segmentation node with its parent node). More...
 
MITKMULTILABEL_EXPORT Label::Pointer mitk::LabelSetImageHelper::CreateNewLabel (const LabelSetImage *labelSetImage, const std::string &namePrefix="Label", bool hideIDIfUnique=false)
 This function creates and returns a new label. The label is automatically assigned an unused generic label name, depending on existing label names in all label sets of the given label set image. The color of the label is selected from the MULTILABEL lookup table, following the same rules of the naming to likely chose a unique color. More...
 
MITKMULTILABEL_EXPORT GroupIDToLabelValueMapType mitk::LabelSetImageHelper::SplitLabelValuesByGroup (const LabelSetImage *labelSetImage, const LabelSetImage::LabelValueVectorType &labelValues)
 
MITKMULTILABEL_EXPORT LabelClassNameToLabelValueMapType mitk::LabelSetImageHelper::SplitLabelValuesByClassNamwe (const LabelSetImage *labelSetImage, LabelSetImage::GroupIndexType groupID)
 
MITKMULTILABEL_EXPORT LabelClassNameToLabelValueMapType mitk::LabelSetImageHelper::SplitLabelValuesByClassNamwe (const LabelSetImage *labelSetImage, LabelSetImage::GroupIndexType groupID, const LabelSetImage::LabelValueVectorType &labelValues)