Medical Imaging Interaction Toolkit  2023.04.00
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 
66  MITKMULTILABEL_EXPORT mitk::Label::Pointer CreateNewLabel(const LabelSetImage* labelSetImage, const std::string& namePrefix = "Label");
67 
68  } // namespace LabelSetImageHelper
69 } // namespace mitk
70 
71 #endif
MITKMULTILABEL_EXPORT
#define MITKMULTILABEL_EXPORT
Definition: MitkMultilabelExports.h:15
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
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::LabelSetImageHelper::CreateNewLabel
MITKMULTILABEL_EXPORT mitk::Label::Pointer CreateNewLabel(const LabelSetImage *labelSetImage, const std::string &namePrefix="Label")
This function creates and returns a new label. The label is automatically assigned an unused generic ...
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::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63
mitk::LabelSetImage
LabelSetImage class for handling labels and layers in a segmentation session.
Definition: mitkLabelSetImage.h:29
MitkMultilabelExports.h
mitkLabelSetImage.h