| 63 | } |
| 64 | |
| 65 | Label::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 | |
| 73 | MultiLabelSegmentation::LabelValueVectorType ToLabelValues(py::iterable seq) |
| 74 | { |
no test coverage detected