MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / rotate

Function rotate

jni/venus/region_operation.cpp:278–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278static cv::Vec2f rotate(const cv::Vec2f& v, float angle)
279{
280 // complex<T>(x,y) * complex<T>(cos(angle), sin(angle));
281 const float c = std::cos(angle);
282 const float s = std::sin(angle);
283 float _x = c * v[0] - s * v[1];
284 float _y = s * v[0] + c * v[1];
285
286 return cv::Vec2f(_x, _y);
287}
288
289static void correctIris(const Mat& image, std::vector<Point2f>& points)
290{

Callers 1

getFaceFeaturePointsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected