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

Function py_randomly_color_image

tools/python/src/image.cpp:176–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174
175template <typename T>
176numpy_image<rgb_pixel> py_randomly_color_image (
177 const numpy_image<T>& img
178)
179{
180 numpy_image<rgb_pixel> temp;
181 matrix<T> itemp;
182 assign_image(itemp, numpy_image<T>(img));
183 assign_image(temp, randomly_color_image(itemp));
184 return temp;
185}
186
187// ----------------------------------------------------------------------------------------
188

Callers

nothing calls this directly

Calls 2

randomly_color_imageFunction · 0.85
assign_imageFunction · 0.50

Tested by

no test coverage detected