| 28 | } |
| 29 | |
| 30 | static void RotShapeInPlace( |
| 31 | Shape& shape, // io |
| 32 | double rot, // in: in-plane rotation angle in degrees, pos is anticlock |
| 33 | double x, // in: rotation origin |
| 34 | double y) // in |
| 35 | { |
| 36 | CV_Assert(rot >= -360 && rot <= 360); // sanity check, 360 is arb |
| 37 | |
| 38 | const MAT rotmat = |
| 39 | getRotationMatrix2D(cv::Point2f(float(x), float(y)), rot, 1.0); |
| 40 | |
| 41 | TransformShapeInPlace(shape, rotmat); |
| 42 | } |
| 43 | |
| 44 | // If shape5 does not have 5 points, return rot and yaw of 0. |
| 45 | // Else assume that the following five points are present, in this order: |
no test coverage detected