Medical Imaging Interaction Toolkit  2023.12.99-fc5b483f
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 {
26  namespace LabelSetImageHelper
27  {
34  MITKMULTILABEL_EXPORT mitk::DataNode::Pointer CreateEmptySegmentationNode(const std::string& segmentationName = std::string());
35 
52  const Image* initialSegmentationImage = nullptr, const std::string& segmentationName = std::string());
53 
68  MITKMULTILABEL_EXPORT Label::Pointer CreateNewLabel(const LabelSetImage* labelSetImage, const std::string& namePrefix = "Label", bool hideIDIfUnique = false);
69 
70  using GroupIDToLabelValueMapType = std::map<mitk::LabelSetImage::GroupIndexType, LabelSetImage::LabelValueVectorType>;
72 
73  using LabelClassNameToLabelValueMapType = std::map<std::string, LabelSetImage::LabelValueVectorType>;
76 
78 
79  } // namespace LabelSetImageHelper
80 } // namespace mitk
81 
82 #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::LabelSetImageHelper::CreateNewSegmentationNode
MITKMULTILABEL_EXPORT mitk::DataNode::Pointer 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....
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:73
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:70
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::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