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

Function py_transform_image

tools/python/src/image4.cpp:478–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476
477template <typename T>
478numpy_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
494template <typename T>

Callers

nothing calls this directly

Calls 2

transform_imageFunction · 0.85

Tested by

no test coverage detected