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

Function RequireLabel

Wrapping/Python/mitk/MultiLabelSegmentation.cpp:225–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void RequireLabel(const MultiLabelSegmentation& seg, Label::PixelType value)
226{
227 if (!seg.ExistLabel(value))
228 throw py::key_error("Label value " + std::to_string(value) + " not found");
229}
230
231// Pixel/label consistency scan backing MultiLabelSegmentation.validate().
232// Group images are always uint16, so the buffer is read directly (no ITK type

Callers 1

Calls 1

ExistLabelMethod · 0.80

Tested by

no test coverage detected