Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkLabelSetImageHelper.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkLabelSetImageHelper_h
14 #define mitkLabelSetImageHelper_h
15 
16 #include <MitkMultilabelExports.h>
17 
18 #include <mitkDataNode.h>
19 #include <mitkLabelSetImage.h>
20 
21 namespace mitk
22 {
23  class DataStorage;
24 
25  namespace LabelSetImageHelper
26  {
33  MITKMULTILABEL_EXPORT mitk::DataNode::Pointer CreateEmptySegmentationNode(const std::string& segmentationName = std::string());
34 
52  const Image* initialSegmentationImage = nullptr, const std::string& segmentationName = std::string(),
53  const DataStorage* dataStorage = nullptr);
54 
69  MITKMULTILABEL_EXPORT Label::Pointer CreateNewLabel(const LabelSetImage* labelSetImage, const std::string& namePrefix = "Label", bool hideIDIfUnique = false);
70 
71  using GroupIDToLabelValueMapType = std::map<mitk::LabelSetImage::GroupIndexType, LabelSetImage::LabelValueVectorType>;
73 
74  using LabelClassNameToLabelValueMapType = std::map<std::string, LabelSetImage::LabelValueVectorType>;
77 
79 
80  } // namespace LabelSetImageHelper
81 } // namespace mitk
82 
83 #endif
MITKMULTILABEL_EXPORT
#define MITKMULTILABEL_EXPORT
Definition: MitkMultilabelExports.h:15
mitk::LabelSetImageHelper::CreateNewLabel
MITKMULTILABEL_EXPORT Label::Pointer 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 ...
mitk::LabelSetImageHelper::SplitLabelValuesByGroup
MITKMULTILABEL_EXPORT GroupIDToLabelValueMapType SplitLabelValuesByGroup(const LabelSetImage *labelSetImage, const LabelSetImage::LabelValueVectorType &labelValues)
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
itk::SmartPointer< Self >
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::LabelSetImageHelper::LabelClassNameToLabelValueMapType
std::map< std::string, LabelSetImage::LabelValueVectorType > LabelClassNameToLabelValueMapType
Definition: mitkLabelSetImageHelper.h:74
mitk::LabelSetImageHelper::SplitLabelValuesByClassNamwe
MITKMULTILABEL_EXPORT LabelClassNameToLabelValueMapType SplitLabelValuesByClassNamwe(const LabelSetImage *labelSetImage, LabelSetImage::GroupIndexType groupID)
mitk::LabelSetImageHelper::GroupIDToLabelValueMapType
std::map< mitk::LabelSetImage::GroupIndexType, LabelSetImage::LabelValueVectorType > GroupIDToLabelValueMapType
Definition: mitkLabelSetImageHelper.h:71
mitk::DataStorage
Data management class that handles 'was created by' relations.
Definition: mitkDataStorage.h:43
mitk::LabelSetImageHelper::CreateEmptySegmentationNode
MITKMULTILABEL_EXPORT mitk::DataNode::Pointer CreateEmptySegmentationNode(const std::string &segmentationName=std::string())
This function creates and returns a new empty segmentation data node.
mitkDataNode.h
mitk::LabelSetImageHelper::CreateNewSegmentationNode
MITKMULTILABEL_EXPORT mitk::DataNode::Pointer CreateNewSegmentationNode(const DataNode *referenceNode, const Image *initialSegmentationImage=nullptr, const std::string &segmentationName=std::string(), const DataStorage *dataStorage=nullptr)
This function creates and returns a new data node with a new empty segmentation data structure....
mitk::LabelSetImage::GroupIndexType
std::size_t GroupIndexType
Definition: mitkLabelSetImage.h:74
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63
mitk::LabelSetImage::LabelValueVectorType
std::vector< LabelValueType > LabelValueVectorType
Definition: mitkLabelSetImage.h:78
mitk::LabelSetImage
LabelSetImage class for handling labels and layers in a segmentation session.
Definition: mitkLabelSetImage.h:43
MitkMultilabelExports.h
mitk::LabelSetImageHelper::CreateDisplayGroupName
MITKMULTILABEL_EXPORT std::string CreateDisplayGroupName(const LabelSetImage *labelSetImage, LabelSetImage::GroupIndexType groupID)
mitkLabelSetImage.h