提交 70caece0 编写于 作者: A Andrey Pavlenko

Java API: fitEllipse arg type is changed to List<Point>, test is updated as well

Testing: 1176/4/580
上级 024482ad
......@@ -766,8 +766,12 @@ public class imgprocTest extends OpenCVTestCase {
}
public void testFitEllipse() {
Mat points = new Mat(1, 5, CvType.CV_32FC2);
points.put(0, 0, 0.0, 0.0, -1.0, 1.0, 1.0, 1.0, 1.0, -1.0, -1.0, -1.0);
List<Point> points = new ArrayList<Point>();
points.add(new Point( 0, 0));
points.add(new Point(-1, 1));
points.add(new Point( 1, 1));
points.add(new Point( 1, -1));
points.add(new Point(-1, -1));
RotatedRect rrect = new RotatedRect();
rrect = Imgproc.fitEllipse(points);
......
......@@ -484,6 +484,7 @@ func_arg_fix = {
'solvePnPRansac' : { 'objectPoints' : 'vector_Point3f', 'imagePoints' : 'vector_Point2f', },
'calcOpticalFlowPyrLK' : { 'prevPts' : 'vector_Point2f', 'nextPts' : 'vector_Point2f',
'status' : 'vector_uchar', 'err' : 'vector_float', },
'fitEllipse' : { 'points' : 'vector_Point2f', },
}, # '', i.e. no class
} # func_arg_fix
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册