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

Function ToLabelValue

Wrapping/Python/mitk/MultiLabelSegmentation.cpp:65–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65Label::PixelType ToLabelValue(py::handle h)
66{
67 // Accept Label instance or integer
68 if (py::isinstance<Label>(h))
69 return h.cast<const Label&>().GetValue();
70 return h.cast<Label::PixelType>();
71}
72
73MultiLabelSegmentation::LabelValueVectorType ToLabelValues(py::iterable seq)
74{

Callers 3

ToLabelValuesFunction · 0.85
ToLabelMappingFunction · 0.85

Calls 1

GetValueMethod · 0.45

Tested by

no test coverage detected