Ask Your Question

moved's profile - activity

2015-10-29 21:49:24 -0600 asked a question cv::rotatedRectangleIntersection assertion failed.

Hi,

I'm working on finding the intersections between two rotatedRectangle.

RotatedRect r1 = RotatedRect(Point2f(1174.85852, 730.577332), Size2f(1318.08118, 400.503601), -2.31209111);
RotatedRect r2 = RotatedRect(Point2f(1172.80396, 728.535950), Size2f(1318.74963, 389.407377), -2.97718263);
vector<cv::Point2f> vertices;
int intersectionType = cv::rotatedRectangleIntersection(r1, r2, vertices);

then it throws this: OpenCV Error: Assertion failed (intersection.size() <= 8) in cv::rotatedRectangleIntersection, file ......, line 245 even if the verticies.size() is 6.

Strange thing is, it works fine in Debug mode, but it doesn't in Release mode... Can anyone help me?

Thanks in advance.