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

Function py_get_histogram

tools/python/src/image2.cpp:509–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507
508template <typename T>
509py::array_t<unsigned long> py_get_histogram (
510 const numpy_image<T>& img,
511 size_t hist_size
512)
513{
514 matrix<unsigned long,1> hist;
515 get_histogram(img,hist,hist_size);
516
517 return numpy_image<unsigned long>(std::move(hist)).squeeze();
518}
519
520// ----------------------------------------------------------------------------------------
521

Callers

nothing calls this directly

Calls 3

get_histogramFunction · 0.85
moveFunction · 0.85
squeezeMethod · 0.80

Tested by

no test coverage detected