| 30 | |
| 31 | template <typename T> |
| 32 | numpy_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 |
nothing calls this directly
no test coverage detected