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

Testing: 1176/4/580
This commit is contained in:
Andrey Pavlenko 2011-08-04 12:00:53 +00:00
parent 024482adac
commit 70caece001
2 changed files with 7 additions and 2 deletions

View File

@ -766,8 +766,12 @@ public class imgprocTest extends OpenCVTestCase {
} }
public void testFitEllipse() { public void testFitEllipse() {
Mat points = new Mat(1, 5, CvType.CV_32FC2); List<Point> points = new ArrayList<Point>();
points.put(0, 0, 0.0, 0.0, -1.0, 1.0, 1.0, 1.0, 1.0, -1.0, -1.0, -1.0); 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(); RotatedRect rrect = new RotatedRect();
rrect = Imgproc.fitEllipse(points); rrect = Imgproc.fitEllipse(points);

View File

@ -484,6 +484,7 @@ func_arg_fix = {
'solvePnPRansac' : { 'objectPoints' : 'vector_Point3f', 'imagePoints' : 'vector_Point2f', }, 'solvePnPRansac' : { 'objectPoints' : 'vector_Point3f', 'imagePoints' : 'vector_Point2f', },
'calcOpticalFlowPyrLK' : { 'prevPts' : 'vector_Point2f', 'nextPts' : 'vector_Point2f', 'calcOpticalFlowPyrLK' : { 'prevPts' : 'vector_Point2f', 'nextPts' : 'vector_Point2f',
'status' : 'vector_uchar', 'err' : 'vector_float', }, 'status' : 'vector_uchar', 'err' : 'vector_float', },
'fitEllipse' : { 'points' : 'vector_Point2f', },
}, # '', i.e. no class }, # '', i.e. no class
} # func_arg_fix } # func_arg_fix