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
c00a1f63
Commit
c00a1f63
authored
Jun 14, 2011
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed csbp test under linux
parent
d469b31a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
test_stereo_csbp.cpp
modules/gpu/test/test_stereo_csbp.cpp
+5
-5
No files found.
modules/gpu/test/test_stereo_csbp.cpp
View file @
c00a1f63
...
...
@@ -50,10 +50,10 @@ struct CV_GpuStereoCSBPTest : public cvtest::BaseTest
cv
::
Mat
img_template
;
if
(
cv
::
gpu
::
TargetArchs
::
builtWith
(
cv
::
gpu
::
FEATURE_SET_COMPUTE_20
)
&&
cv
::
gpu
::
DeviceInfo
().
supports
(
cv
::
gpu
::
FEATURE_SET_COMPUTE_20
))
img_template
=
cv
::
imread
(
std
::
string
(
ts
->
get_data_path
())
+
"csstereobp/aloe-disp.png"
,
CV_LOAD_IMAGE_GRAYSCALE
);
else
if
(
cv
::
gpu
::
TargetArchs
::
builtWith
(
cv
::
gpu
::
FEATURE_SET_COMPUTE_20
)
&&
cv
::
gpu
::
DeviceInfo
().
supports
(
cv
::
gpu
::
FEATURE_SET_COMPUTE_20
))
img_template
=
cv
::
imread
(
std
::
string
(
ts
->
get_data_path
())
+
"csstereobp/aloe-disp.png"
,
CV_LOAD_IMAGE_GRAYSCALE
);
else
img_template
=
cv
::
imread
(
std
::
string
(
ts
->
get_data_path
())
+
"csstereobp/aloe-disp_CC1X.png"
,
CV_LOAD_IMAGE_GRAYSCALE
);
if
(
img_l
.
empty
()
||
img_r
.
empty
()
||
img_template
.
empty
())
...
...
@@ -75,7 +75,7 @@ struct CV_GpuStereoCSBPTest : public cvtest::BaseTest
disp
.
convertTo
(
disp
,
img_template
.
type
());
double
norm
=
cv
::
norm
((
cv
::
Mat
)
disp
,
img_template
,
cv
::
NORM_INF
);
if
(
norm
>=
0
.5
)
if
(
norm
>=
1
.5
)
{
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"
\n
ConstantSpaceStereoBP norm = %f
\n
"
,
norm
);
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_GENERIC
);
...
...
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