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
74f5eaf7
Commit
74f5eaf7
authored
Aug 28, 2015
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5262 from jet47:gpu-stereobp-fix
parents
94cf5430
7ddc0bdd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
stereobp.cpp
modules/gpu/src/stereobp.cpp
+4
-4
test_calib3d.cpp
modules/gpu/test/test_calib3d.cpp
+3
-1
No files found.
modules/gpu/src/stereobp.cpp
View file @
74f5eaf7
...
...
@@ -213,8 +213,8 @@ namespace
if
(
rthis
.
levels
>
1
)
{
int
less_rows
=
(
rows
+
1
)
/
2
;
int
less_cols
=
(
cols
+
1
)
/
2
;
int
less_rows
=
rows
/
2
;
int
less_cols
=
cols
/
2
;
u2
.
create
(
less_rows
*
rthis
.
ndisp
,
less_cols
,
rthis
.
msg_type
);
d2
.
create
(
less_rows
*
rthis
.
ndisp
,
less_cols
,
rthis
.
msg_type
);
...
...
@@ -283,8 +283,8 @@ namespace
for
(
int
i
=
1
;
i
<
rthis
.
levels
;
++
i
)
{
cols_all
[
i
]
=
(
cols_all
[
i
-
1
]
+
1
)
/
2
;
rows_all
[
i
]
=
(
rows_all
[
i
-
1
]
+
1
)
/
2
;
cols_all
[
i
]
=
cols_all
[
i
-
1
]
/
2
;
rows_all
[
i
]
=
rows_all
[
i
-
1
]
/
2
;
datas
[
i
].
create
(
rows_all
[
i
]
*
rthis
.
ndisp
,
cols_all
[
i
],
rthis
.
msg_type
);
...
...
modules/gpu/test/test_calib3d.cpp
View file @
74f5eaf7
...
...
@@ -114,7 +114,9 @@ GPU_TEST_P(StereoBeliefPropagation, Regression)
cv
::
Mat
h_disp
(
disp
);
h_disp
.
convertTo
(
h_disp
,
disp_gold
.
depth
());
EXPECT_MAT_NEAR
(
disp_gold
,
h_disp
,
0.0
);
cv
::
Rect
roi
(
0
,
0
,
disp_gold
.
cols
-
20
,
disp_gold
.
rows
-
20
);
EXPECT_MAT_NEAR
(
disp_gold
(
roi
),
h_disp
(
roi
),
0.0
);
}
INSTANTIATE_TEST_CASE_P
(
GPU_Calib3D
,
StereoBeliefPropagation
,
ALL_DEVICES
);
...
...
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