MCPcopy Create free account
hub / github.com/MITK/MITK / SplitLabelValuesByClassName

Method SplitLabelValuesByClassName

Modules/Multilabel/src/mitkLabelSetImageHelper.cpp:325–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325mitk::LabelSetImageHelper::LabelClassNameToLabelValueMapType
326mitk::LabelSetImageHelper::SplitLabelValuesByClassName(const MultiLabelSegmentation* labelSetImage, MultiLabelSegmentation::GroupIndexType groupID)
327{
328 if (nullptr == labelSetImage)
329 mitkThrow() << "Cannot split label values. Invalid MultiLabelSegmentation pointer passed";
330
331 return SplitLabelValuesByClassName(labelSetImage, groupID, labelSetImage->GetLabelValuesByGroup(groupID));
332}
333
334mitk::LabelSetImageHelper::LabelClassNameToLabelValueMapType
335mitk::LabelSetImageHelper::SplitLabelValuesByClassName(const MultiLabelSegmentation* labelSetImage, MultiLabelSegmentation::GroupIndexType groupID, const MultiLabelSegmentation::LabelValueVectorType& labelValues)

Callers

nothing calls this directly

Calls 4

GetLabelValuesByGroupMethod · 0.80
GetGroupIndexOfLabelMethod · 0.80
GetNameMethod · 0.45
GetLabelMethod · 0.45

Tested by

no test coverage detected