| 476 | |
| 477 | template <typename T> |
| 478 | numpy_image<T> py_transform_image ( |
| 479 | const numpy_image<T>& img, |
| 480 | const point_transform_projective& map_point, |
| 481 | long rows, |
| 482 | long columns |
| 483 | ) |
| 484 | { |
| 485 | DLIB_CASSERT(rows > 0 && columns > 0, "The requested output image dimensions are invalid."); |
| 486 | numpy_image<T> out(rows, columns); |
| 487 | |
| 488 | transform_image(img, out, interpolate_bilinear(), map_point); |
| 489 | |
| 490 | return out; |
| 491 | } |
| 492 | // ---------------------------------------------------------------------------------------- |
| 493 | |
| 494 | template <typename T> |
nothing calls this directly
no test coverage detected