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
Central node class of the MITK data tree, associating a data object with properties and mappers.
Abstract data management class that organizes DataNode objects in a directed acyclic graph.
Image class for storing multi-dimensional medical image data.
A data structure describing a label in a multi-label segmentation.
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::Color SuggestNewLabelColor(const std::vector< mitk::Color > &usedColors)
Suggests the next color from the MULTILABEL color scheme, given the colors already in use.
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)
MITKMULTILABEL_EXPORT void SetupDerivedSegmentation(MultiLabelSegmentation *seg, const Image *source)
Apply the typical defaults for a segmentation derived from a source image: establish the source-image...
Find image slices visible on a given plane.
std::vector< std::pair< Label::PixelType, Label::PixelType > > LabelValueMappingVector
itk::RGBPixel< float > Color
Standard RGB color typedef using float components.