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

Function py_threshold_image2

tools/python/src/image.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34template <typename T>
35numpy_image<unsigned char> py_threshold_image2(
36 const numpy_image<T>& in_img,
37 typename pixel_traits<T>::basic_pixel_type thresh
38)
39{
40 numpy_image<unsigned char> out_img;
41 threshold_image(in_img, out_img, thresh);
42 return out_img;
43}
44
45template <typename T>
46numpy_image<unsigned char> py_threshold_image(

Callers

nothing calls this directly

Calls 1

threshold_imageFunction · 0.85

Tested by

no test coverage detected