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

Function MakeLabelGroup

Wrapping/Python/mitk/MultiLabelSegmentation.cpp:300–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298namespace
299{
300LabelGroup MakeLabelGroup(MultiLabelSegmentation& seg, unsigned int index)
301{
302 LabelGroup g;
303 g.index = index;
304 g.name = seg.GetGroupName(index);
305 g.labels = MakeLabelVector(seg.GetLabelsByValue(seg.GetLabelValuesByGroup(index)));
306 g.class_names = seg.GetLabelClassNamesByGroup(index);
307 g.image = seg.GetGroupImage(index);
308 return g;
309}
310} // namespace
311
312// ---------------------------------------------------------------------------

Callers 1

Calls 6

MakeLabelVectorFunction · 0.85
GetLabelsByValueMethod · 0.80
GetLabelValuesByGroupMethod · 0.80
GetGroupNameMethod · 0.45
GetGroupImageMethod · 0.45

Tested by

no test coverage detected