| 223 | } |
| 224 | |
| 225 | void 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 |
no test coverage detected