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

Function py_label_connected_blobs_watershed

tools/python/src/image.cpp:152–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151template <typename T>
152py::tuple py_label_connected_blobs_watershed (
153 const numpy_image<T>& img,
154 const T& background_thresh,
155 const double smoothing
156)
157{
158 numpy_image<uint32_t> labels;
159 auto num_blobs = label_connected_blobs_watershed(img, labels, background_thresh, smoothing);
160 return py::make_tuple(labels, num_blobs);
161}
162
163template <typename T>
164py::tuple py_label_connected_blobs_watershed2 (

Callers

nothing calls this directly

Calls 2

make_tupleFunction · 0.85

Tested by

no test coverage detected