13 #ifndef mitkLabelSetImageHelper_h
14 #define mitkLabelSetImageHelper_h
25 namespace LabelSetImageHelper
52 const Image* initialSegmentationImage =
nullptr,
const std::string& segmentationName = std::string(),
#define MITKMULTILABEL_EXPORT
Class for nodes of the DataTree.
Data management class that handles 'was created by' relations.
Image class for storing images.
A data structure describing a label.
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
std::size_t GroupIndexType
std::vector< LabelValueType > LabelValueVectorType
MITKMULTILABEL_EXPORT GroupIDToLabelValueMapType SplitLabelValuesByGroup(const MultiLabelSegmentation *labelSetImage, const MultiLabelSegmentation::LabelValueVectorType &labelValues)
MITKMULTILABEL_EXPORT LabelClassNameToLabelValueMapType SplitLabelValuesByClassName(const MultiLabelSegmentation *labelSetImage, MultiLabelSegmentation::GroupIndexType groupID)
MITKMULTILABEL_EXPORT std::string CreateDisplayGroupName(const MultiLabelSegmentation *labelSetImage, MultiLabelSegmentation::GroupIndexType groupID)
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....
std::map< std::string, MultiLabelSegmentation::LabelValueVectorType > LabelClassNameToLabelValueMapType
MITKMULTILABEL_EXPORT mitk::DataNode::Pointer CreateEmptySegmentationNode(const std::string &segmentationName=std::string())
This function creates and returns a new empty segmentation data node.
std::map< MultiLabelSegmentation::GroupIndexType, std::map< MultiLabelSegmentation::GroupIndexType, LabelValueMappingVector > > SourceToTargetGroupIDToLabelValueMappingMapType
MITKMULTILABEL_EXPORT Label::Pointer CreateNewLabel(const MultiLabelSegmentation *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 ...
std::map< mitk::MultiLabelSegmentation::GroupIndexType, MultiLabelSegmentation::LabelValueVectorType > GroupIDToLabelValueMapType
MITKMULTILABEL_EXPORT SourceToTargetGroupIDToLabelValueMappingMapType SplitLabelValueMappingBySourceAndTargetGroup(const MultiLabelSegmentation *sourceSeg, const MultiLabelSegmentation *targetSeg, const LabelValueMappingVector &labelMapping)
MITKMULTILABEL_EXPORT std::string CreateDisplayLabelName(const MultiLabelSegmentation *labelSetImage, const Label *label)
MITKMULTILABEL_EXPORT std::string CreateHTMLLabelDetails(const mitk::Label *label, const MultiLabelSegmentation *segmentation=nullptr)
MITKMULTILABEL_EXPORT std::string CreateHTMLLabelName(const Label *label, const MultiLabelSegmentation *segmentation=nullptr)
Find image slices visible on a given plane.
std::vector< std::pair< Label::PixelType, Label::PixelType > > LabelValueMappingVector