mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
unified the coordinate interpretation in RotatedRect (ticket #425)
This commit is contained in:
@@ -877,7 +877,7 @@ void ellipse2Poly( Point center, Size axes, int angle,
|
||||
y = size_b * SinTable[angle];
|
||||
Point pt;
|
||||
pt.x = cvRound( cx + x * alpha - y * beta );
|
||||
pt.y = cvRound( cy - x * beta - y * alpha );
|
||||
pt.y = cvRound( cy + x * beta + y * alpha );
|
||||
if( pt != prevPt )
|
||||
pts.push_back(pt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user