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
af8ed9d0
Commit
af8ed9d0
authored
Oct 10, 2017
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9816 from opalmirror:fix_stereobm_mindisp_truncation_1
parents
638a91f9
2cfe2927
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
stereosgbm.cpp
modules/calib3d/src/stereosgbm.cpp
+2
-2
No files found.
modules/calib3d/src/stereosgbm.cpp
View file @
af8ed9d0
...
...
@@ -2273,10 +2273,10 @@ Rect getValidDisparityROI( Rect roi1, Rect roi2,
int
SADWindowSize
)
{
int
SW2
=
SADWindowSize
/
2
;
int
m
inD
=
minDisparity
,
m
axD
=
minDisparity
+
numberOfDisparities
-
1
;
int
maxD
=
minDisparity
+
numberOfDisparities
-
1
;
int
xmin
=
std
::
max
(
roi1
.
x
,
roi2
.
x
+
maxD
)
+
SW2
;
int
xmax
=
std
::
min
(
roi1
.
x
+
roi1
.
width
,
roi2
.
x
+
roi2
.
width
-
minD
)
-
SW2
;
int
xmax
=
std
::
min
(
roi1
.
x
+
roi1
.
width
,
roi2
.
x
+
roi2
.
width
)
-
SW2
;
int
ymin
=
std
::
max
(
roi1
.
y
,
roi2
.
y
)
+
SW2
;
int
ymax
=
std
::
min
(
roi1
.
y
+
roi1
.
height
,
roi2
.
y
+
roi2
.
height
)
-
SW2
;
...
...
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