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
ba60094a
Commit
ba60094a
authored
Jul 16, 2010
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed reprojection error check in the fundamental matrix test
parent
dce51826
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
afundam.cpp
tests/cv/src/afundam.cpp
+5
-3
No files found.
tests/cv/src/afundam.cpp
View file @
ba60094a
...
...
@@ -902,7 +902,7 @@ void CV_FundamentalMatTest::get_test_array_types_and_sizes( int /*test_case_idx*
double
CV_FundamentalMatTest
::
get_success_error_level
(
int
/*test_case_idx*/
,
int
/*i*/
,
int
/*j*/
)
{
return
5
e-2
;
return
1
e-2
;
}
...
...
@@ -1071,12 +1071,14 @@ void CV_FundamentalMatTest::prepare_to_validation( int test_case_idx )
double
y1
=
p1
->
data
.
db
[
i
*
2
+
1
];
double
x2
=
p2
->
data
.
db
[
i
*
2
];
double
y2
=
p2
->
data
.
db
[
i
*
2
+
1
];
double
n1
=
1.
/
sqrt
(
x1
*
x1
+
y1
*
y1
+
1
);
double
n2
=
1.
/
sqrt
(
x2
*
x2
+
y2
*
y2
+
1
);
double
t0
=
fabs
(
f0
[
0
]
*
x2
*
x1
+
f0
[
1
]
*
x2
*
y1
+
f0
[
2
]
*
x2
+
f0
[
3
]
*
y2
*
x1
+
f0
[
4
]
*
y2
*
y1
+
f0
[
5
]
*
y2
+
f0
[
6
]
*
x1
+
f0
[
7
]
*
y1
+
f0
[
8
]);
f0
[
6
]
*
x1
+
f0
[
7
]
*
y1
+
f0
[
8
])
*
n1
*
n2
;
double
t
=
fabs
(
f
[
0
]
*
x2
*
x1
+
f
[
1
]
*
x2
*
y1
+
f
[
2
]
*
x2
+
f
[
3
]
*
y2
*
x1
+
f
[
4
]
*
y2
*
y1
+
f
[
5
]
*
y2
+
f
[
6
]
*
x1
+
f
[
7
]
*
y1
+
f
[
8
]);
f
[
6
]
*
x1
+
f
[
7
]
*
y1
+
f
[
8
])
*
n1
*
n2
;
mtfm1
[
i
]
=
1
;
mtfm2
[
i
]
=
!
status
[
i
]
||
t0
>
err_level
||
t
<
err_level
;
}
...
...
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