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

Function py_scale_image

tools/python/src/image2.cpp:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31template <typename T>
32numpy_image<T> py_scale_image (
33 const numpy_image<T>& img,
34 double scale
35)
36{
37 DLIB_CASSERT(scale > 0, "Scale factor must be greater than 0");
38 numpy_image<T> out = img;
39 resize_image(scale, out);
40 return out;
41}
42
43// ----------------------------------------------------------------------------------------
44

Callers

nothing calls this directly

Calls 1

resize_imageFunction · 0.85

Tested by

no test coverage detected