Merge pull request #19235 from alalek:fix_test_swift_minAreaRect

This commit is contained in:
Alexander Alekhin 2020-12-30 15:24:55 +00:00
commit bec7b297ed

View File

@ -1128,8 +1128,8 @@ class ImgprocTest: OpenCVTestCase {
let rrect = Imgproc.minAreaRect(points: points)
XCTAssertEqual(Size2f(width: 2, height: 5), rrect.size)
XCTAssertEqual(-90.0, rrect.angle)
XCTAssertEqual(Size2f(width: 5, height: 2), rrect.size)
XCTAssertEqual(0.0, rrect.angle)
XCTAssertEqual(Point2f(x: 3.5, y: 2), rrect.center)
}