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
16c4aad3
Commit
16c4aad3
authored
Jun 13, 2013
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Java/Python bindings for computeCorrespondEpilines added.
Simle Java test for computeCorrespondEpilines added.
parent
98f6a4a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
calib3d.hpp
modules/calib3d/include/opencv2/calib3d/calib3d.hpp
+3
-3
Calib3dTest.java
...android_test/src/org/opencv/test/calib3d/Calib3dTest.java
+14
-0
No files found.
modules/calib3d/include/opencv2/calib3d/calib3d.hpp
View file @
16c4aad3
...
...
@@ -639,9 +639,9 @@ CV_EXPORTS Mat findFundamentalMat( InputArray points1, InputArray points2,
double
param1
=
3.
,
double
param2
=
0.99
);
//! finds coordinates of epipolar lines corresponding the specified points
CV_EXPORTS
void
computeCorrespondEpilines
(
InputArray
points
,
int
whichImage
,
InputArray
F
,
OutputArray
lines
);
CV_EXPORTS
_W
void
computeCorrespondEpilines
(
InputArray
points
,
int
whichImage
,
InputArray
F
,
OutputArray
lines
);
CV_EXPORTS_W
void
triangulatePoints
(
InputArray
projMatr1
,
InputArray
projMatr2
,
InputArray
projPoints1
,
InputArray
projPoints2
,
...
...
modules/java/android_test/src/org/opencv/test/calib3d/Calib3dTest.java
View file @
16c4aad3
...
...
@@ -585,4 +585,18 @@ public class Calib3dTest extends OpenCVTestCase {
public
void
testValidateDisparityMatMatIntIntInt
()
{
fail
(
"Not yet implemented"
);
}
public
void
testComputeCorrespondEpilines
()
{
Mat
fundamental
=
new
Mat
(
3
,
3
,
CvType
.
CV_64F
);
fundamental
.
put
(
0
,
0
,
0
,
-
0.577
,
0.288
,
0.577
,
0
,
0.288
,
-
0.288
,
-
0.288
,
0
);
MatOfPoint2f
left
=
new
MatOfPoint2f
();
left
.
alloc
(
1
);
left
.
put
(
0
,
0
,
2
,
3
);
//add(new Point(x, y));
Mat
lines
=
new
Mat
();
Mat
truth
=
new
Mat
(
1
,
1
,
CvType
.
CV_32FC3
);
truth
.
put
(
0
,
0
,
-
0.70735186
,
0.70686162
,
-
0.70588124
);
Calib3d
.
computeCorrespondEpilines
(
left
,
1
,
fundamental
,
lines
);
assertMatEqual
(
truth
,
lines
,
EPS
);
}
}
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