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
1e90b2f5
Commit
1e90b2f5
authored
Apr 23, 2015
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3957 from dhood:fm-8pt-bug
parents
12a3156a
eee210f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
20 deletions
+6
-20
fundam.cpp
modules/calib3d/src/fundam.cpp
+1
-1
test_fundam.cpp
modules/calib3d/test/test_fundam.cpp
+5
-19
No files found.
modules/calib3d/src/fundam.cpp
View file @
1e90b2f5
...
...
@@ -641,7 +641,7 @@ static int run8Point( const Mat& _m1, const Mat& _m2, Mat& _fmatrix )
W
.
at
<
double
>
(
2
)
=
0.
;
// F0 <- U*diag([W(1), W(2), 0])*V'
gemm
(
U
,
Mat
::
diag
(
W
),
1.
,
0
,
0.
,
TF
,
GEMM_1_T
);
gemm
(
U
,
Mat
::
diag
(
W
),
1.
,
0
,
0.
,
TF
,
0
);
gemm
(
TF
,
V
,
1.
,
0
,
0.
,
F0
,
0
/*CV_GEMM_B_T*/
);
// apply the transformation that is inverse
...
...
modules/calib3d/test/test_fundam.cpp
View file @
1e90b2f5
...
...
@@ -973,26 +973,12 @@ int CV_FundamentalMatTest::prepare_test_case( int test_case_idx )
return
code
;
}
void
CV_FundamentalMatTest
::
run_func
()
{
//if(!test_cpp)
{
CvMat
_input0
=
test_mat
[
INPUT
][
0
],
_input1
=
test_mat
[
INPUT
][
1
];
CvMat
F
=
test_mat
[
TEMP
][
0
],
mask
=
test_mat
[
TEMP
][
1
];
f_result
=
cvFindFundamentalMat
(
&
_input0
,
&
_input1
,
&
F
,
method
,
MAX
(
sigma
*
3
,
0.01
),
0
,
&
mask
);
}
/*else
{
cv::findFundamentalMat(const Mat& points1, const Mat& points2,
vector<uchar>& mask, int method=FM_RANSAC,
double param1=3., double param2=0.99 );
CV_EXPORTS Mat findFundamentalMat( const Mat& points1, const Mat& points2,
int method=FM_RANSAC,
double param1=3., double param2=0.99 );
}*/
// cvFindFundamentalMat calls cv::findFundamentalMat
CvMat
_input0
=
test_mat
[
INPUT
][
0
],
_input1
=
test_mat
[
INPUT
][
1
];
CvMat
F
=
test_mat
[
TEMP
][
0
],
mask
=
test_mat
[
TEMP
][
1
];
f_result
=
cvFindFundamentalMat
(
&
_input0
,
&
_input1
,
&
F
,
method
,
MAX
(
sigma
*
3
,
0.01
),
0
,
&
mask
);
}
...
...
@@ -1022,7 +1008,7 @@ void CV_FundamentalMatTest::prepare_to_validation( int test_case_idx )
F0
*=
1.
/
f0
[
8
];
uchar
*
status
=
test_mat
[
TEMP
][
1
].
ptr
();
double
err_level
=
method
<=
CV_FM_8POINT
?
1
:
get_success_error_level
(
test_case_idx
,
OUTPUT
,
1
);
double
err_level
=
get_success_error_level
(
test_case_idx
,
OUTPUT
,
1
);
uchar
*
mtfm1
=
test_mat
[
REF_OUTPUT
][
1
].
ptr
();
uchar
*
mtfm2
=
test_mat
[
OUTPUT
][
1
].
ptr
();
double
*
f_prop1
=
test_mat
[
REF_OUTPUT
][
0
].
ptr
<
double
>
();
...
...
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