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
33bd1da5
Commit
33bd1da5
authored
Aug 25, 2010
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compilation errors under win32
parent
199ffc63
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
beliefpropagation_gpu.cpp
modules/gpu/src/beliefpropagation_gpu.cpp
+3
-2
constantspacebp_gpu.cpp
modules/gpu/src/constantspacebp_gpu.cpp
+3
-2
No files found.
modules/gpu/src/beliefpropagation_gpu.cpp
View file @
33bd1da5
...
...
@@ -81,12 +81,13 @@ namespace
void
cv
::
gpu
::
StereoBeliefPropagation
::
estimateRecopmmendedParams
(
int
width
,
int
height
,
int
&
ndisp
,
int
&
iters
,
int
&
levels
)
{
ndisp
=
width
/
4
;
if
(
ndisp
&
1
!=
0
)
ndisp
++
;
if
((
ndisp
&
1
)
!=
0
)
ndisp
++
;
int
mm
=::
max
(
width
,
height
);
iters
=
mm
/
100
+
2
;
levels
=
(
int
)(
log
(
mm
)
+
1
)
*
4
/
5
;
levels
=
cvRound
(
log
((
double
)
mm
)
+
1
)
*
4
/
5
;
if
(
levels
==
0
)
levels
++
;
}
...
...
modules/gpu/src/constantspacebp_gpu.cpp
View file @
33bd1da5
...
...
@@ -108,12 +108,13 @@ namespace
void
cv
::
gpu
::
StereoConstantSpaceBP
::
estimateRecopmmendedParams
(
int
width
,
int
height
,
int
&
ndisp
,
int
&
iters
,
int
&
levels
,
int
&
nr_plane
)
{
ndisp
=
(
int
)
((
float
)
width
/
3.14
f
);
if
(
ndisp
&
1
!=
0
)
ndisp
++
;
if
((
ndisp
&
1
)
!=
0
)
ndisp
++
;
int
mm
=
::
max
(
width
,
height
);
iters
=
mm
/
100
+
((
mm
>
1200
)
?
-
4
:
4
);
levels
=
(
int
)
log
(
mm
)
*
2
/
3
;
levels
=
cvRound
(
log
((
double
)
mm
)
)
*
2
/
3
;
if
(
levels
==
0
)
levels
++
;
nr_plane
=
(
int
)
((
float
)
ndisp
/
pow
(
2.0
,
levels
+
1
));
...
...
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