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
9e48f641
Commit
9e48f641
authored
Jan 20, 2011
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed parsing of CC in gpu module
parent
574b3f94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
initialization.cpp
modules/gpu/src/initialization.cpp
+5
-4
arithm.cpp
tests/gpu/src/arithm.cpp
+1
-1
No files found.
modules/gpu/src/initialization.cpp
View file @
9e48f641
...
...
@@ -145,16 +145,17 @@ namespace
template
<
typename
Comparer
>
bool
compare
(
const
std
::
string
&
str
,
int
x
,
Comparer
cmp
)
{
std
::
stringstream
stream
(
str
);
if
(
str
.
find_first_not_of
(
" "
)
==
string
::
npos
)
return
false
;
std
::
stringstream
stream
(
str
);
int
val
;
stream
>>
val
;
while
(
!
stream
.
eof
()
&&
!
stream
.
fail
()
)
while
(
!
stream
.
eof
())
{
stream
>>
val
;
if
(
cmp
(
val
,
x
))
return
true
;
stream
>>
val
;
}
return
false
;
...
...
tests/gpu/src/arithm.cpp
View file @
9e48f641
...
...
@@ -918,7 +918,7 @@ struct CV_GpuCountNonZeroTest: CvTest
if
(
n
!=
n_gold
)
{
ts
->
printf
(
CvTS
::
CONSOLE
,
"%d %d %d %d %d
\n
"
,
n
,
n_gold
,
depth
,
cols
,
rows
);
ts
->
printf
(
CvTS
::
LOG
,
"%d %d %d %d %d
\n
"
,
n
,
n_gold
,
depth
,
cols
,
rows
);
n_gold
=
cv
::
countNonZero
(
src
);
}
...
...
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