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
fbb6b6f9
Commit
fbb6b6f9
authored
Nov 22, 2010
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed compile bug under g++
parent
a275e515
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gpu_hog.cpp
samples/gpu/gpu_hog.cpp
+3
-3
No files found.
samples/gpu/gpu_hog.cpp
View file @
fbb6b6f9
...
...
@@ -148,7 +148,7 @@ Settings Settings::Read(int argc, char** argv)
else
if
(
key
==
"-win_stride_width"
)
settings
.
win_stride_width
=
atoi
(
val
.
c_str
());
else
if
(
key
==
"-win_stride_height"
)
settings
.
win_stride_height
=
atoi
(
val
.
c_str
());
else
if
(
key
==
"-gr_threshold"
)
settings
.
gr_threshold
=
atoi
(
val
.
c_str
());
else
throw
exception
((
string
(
"Unknown key: "
)
+
key
).
c_str
(
));
else
throw
runtime_error
((
string
(
"Unknown key: "
)
+
key
));
}
cout
<<
"Command args are parsed
\n
"
;
...
...
@@ -221,14 +221,14 @@ void App::RunOpencvGui()
{
vc
.
open
(
settings
.
src
.
c_str
());
if
(
!
vc
.
isOpened
())
throw
exception
(
string
(
"Can't open video file: "
+
settings
.
src
).
c_str
(
));
throw
runtime_error
(
string
(
"Can't open video file: "
+
settings
.
src
));
vc
>>
frame
;
}
else
{
frame
=
imread
(
settings
.
src
);
if
(
frame
.
empty
())
throw
exception
(
string
(
"Can't open image file: "
+
settings
.
src
).
c_str
(
));
throw
runtime_error
(
string
(
"Can't open image file: "
+
settings
.
src
));
}
Mat
img_aux
,
img
,
img_to_show
;
...
...
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