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

Function py_find_projective_transform

tools/python/src/vector.cpp:222–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220// ----------------------------------------------------------------------------------------
221
222point_transform_projective py_find_projective_transform (
223 const std::vector<dpoint>& from_points,
224 const std::vector<dpoint>& to_points
225)
226{
227 DLIB_CASSERT(from_points.size() == to_points.size(),
228 "from_points and to_points must have the same number of points.");
229 DLIB_CASSERT(from_points.size() >= 4,
230 "You need at least 4 points to find a projective transform.");
231 return find_projective_transform(from_points, to_points);
232}
233
234template <typename T>
235point_transform_projective py_find_projective_transform2 (

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45

Tested by

no test coverage detected