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
b8fba9d5
Commit
b8fba9d5
authored
Aug 23, 2016
by
berak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix CommandLineParser usage in samples
parent
159534a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
calibrate_camera.cpp
modules/aruco/samples/calibrate_camera.cpp
+1
-1
surf_matcher.cpp
modules/xfeatures2d/samples/surf_matcher.cpp
+2
-2
No files found.
modules/aruco/samples/calibrate_camera.cpp
View file @
b8fba9d5
...
...
@@ -158,7 +158,7 @@ int main(int argc, char *argv[]) {
}
int
markersX
=
parser
.
get
<
int
>
(
"w"
);
int
markersY
=
parser
.
get
<
int
>
(
"
w
"
);
int
markersY
=
parser
.
get
<
int
>
(
"
h
"
);
float
markerLength
=
parser
.
get
<
float
>
(
"l"
);
float
markerSeparation
=
parser
.
get
<
float
>
(
"s"
);
int
dictionaryId
=
parser
.
get
<
int
>
(
"d"
);
...
...
modules/xfeatures2d/samples/surf_matcher.cpp
View file @
b8fba9d5
...
...
@@ -137,11 +137,11 @@ static Mat drawGoodMatches(
int
main
(
int
argc
,
char
*
argv
[])
{
const
char
*
keys
=
"{ h help |
false
| print help message }"
"{ h help |
| print help message }"
"{ l left | box.png | specify left image }"
"{ r right | box_in_scene.png | specify right image }"
"{ o output | SURF_output.jpg | specify output save path }"
"{ m cpu_mode |
false
| run without OpenCL }"
;
"{ m cpu_mode |
| run without OpenCL }"
;
CommandLineParser
cmd
(
argc
,
argv
,
keys
);
if
(
cmd
.
has
(
"help"
))
...
...
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