}
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);
'solvePnPRansac' : { 'objectPoints' : 'vector_Point3f', 'imagePoints' : 'vector_Point2f', },\r
'calcOpticalFlowPyrLK' : { 'prevPts' : 'vector_Point2f', 'nextPts' : 'vector_Point2f',\r
'status' : 'vector_uchar', 'err' : 'vector_float', },\r
+ 'fitEllipse' : { 'points' : 'vector_Point2f', },\r
}, # '', i.e. no class\r
} # func_arg_fix\r
\r