MCPcopy Create free account
hub / github.com/davisking/dlib / py_label_connected_blobs_watershed2

Function py_label_connected_blobs_watershed2

tools/python/src/image.cpp:164–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162
163template <typename T>
164py::tuple py_label_connected_blobs_watershed2 (
165 const numpy_image<T>& img
166)
167{
168 numpy_image<uint32_t> labels;
169 auto num_blobs = label_connected_blobs_watershed(img, labels);
170 return py::make_tuple(labels, num_blobs);
171}
172
173// ----------------------------------------------------------------------------------------
174

Callers

nothing calls this directly

Calls 2

make_tupleFunction · 0.85

Tested by

no test coverage detected