Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
70caece0
Commit
70caece0
authored
Aug 04, 2011
by
Andrey Pavlenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Java API: fitEllipse arg type is changed to List<Point>, test is updated as well
Testing: 1176/4/580
parent
024482ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
imgprocTest.java
...android_test/src/org/opencv/test/imgproc/imgprocTest.java
+6
-2
gen_java.py
modules/java/gen_java.py
+1
-0
No files found.
modules/java/android_test/src/org/opencv/test/imgproc/imgprocTest.java
View file @
70caece0
...
...
@@ -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
);
...
...
modules/java/gen_java.py
View file @
70caece0
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment