| 276 | } |
| 277 | |
| 278 | static 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 | |
| 289 | static void correctIris(const Mat& image, std::vector<Point2f>& points) |
| 290 | { |
no outgoing calls
no test coverage detected