Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
bdfd1e75
Commit
bdfd1e75
authored
Feb 07, 2020
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2416 from alalek:fix_build_gcc48
parents
12d1f6c4
d8c6d067
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
dnn_superres_multioutput.cpp
modules/dnn_superres/samples/dnn_superres_multioutput.cpp
+8
-3
No files found.
modules/dnn_superres/samples/dnn_superres_multioutput.cpp
View file @
bdfd1e75
...
...
@@ -31,20 +31,25 @@ int main(int argc, char *argv[])
std
::
string
path
=
string
(
argv
[
4
]);
//Parse the scaling factors
std
::
stringstream
ss
(
scales_str
);
std
::
vector
<
int
>
scales
;
std
::
string
token
;
char
delim
=
','
;
{
std
::
stringstream
ss
(
scales_str
);
std
::
string
token
;
while
(
std
::
getline
(
ss
,
token
,
delim
))
{
scales
.
push_back
(
atoi
(
token
.
c_str
()));
}
}
//Parse the output node names
ss
=
std
::
stringstream
(
output_names_str
);
std
::
vector
<
String
>
node_names
;
{
std
::
stringstream
ss
(
output_names_str
);
std
::
string
token
;
while
(
std
::
getline
(
ss
,
token
,
delim
))
{
node_names
.
push_back
(
token
);
}
}
// Load the image
Mat
img
=
cv
::
imread
(
img_path
);
...
...
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