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
80b4f99b
Commit
80b4f99b
authored
Aug 09, 2014
by
edgarriba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
d09b4041
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
main_detection.cpp
.../calib3d/real_time_pose_estimation/src/main_detection.cpp
+3
-4
main_registration.cpp
...lib3d/real_time_pose_estimation/src/main_registration.cpp
+1
-1
No files found.
samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/main_detection.cpp
View file @
80b4f99b
...
...
@@ -75,7 +75,6 @@ int main(int argc, char *argv[])
const
cv
::
String
keys
=
"{help h | | print this message }"
"{camera c | | use real time camera }"
"{video v | | path to recorded video }"
"{model | | path to yml model }"
"{mesh | | path to ply mesh }"
...
...
@@ -97,9 +96,9 @@ int main(int argc, char *argv[])
}
else
{
video_read_path
=
parser
.
has
(
"video"
)
?
parser
.
get
<
std
::
string
>
(
0
)
:
video_read_path
;
yml_read_path
=
parser
.
has
(
"model"
)
?
parser
.
get
<
std
::
string
>
(
1
)
:
yml_read_path
;
ply_read_path
=
parser
.
has
(
"mesh"
)
?
parser
.
get
<
std
::
string
>
(
2
)
:
ply_read_path
;
video_read_path
=
parser
.
get
<
std
::
string
>
(
"video"
).
size
()
>
0
?
parser
.
get
<
std
::
string
>
(
"video"
)
:
video_read_path
;
yml_read_path
=
parser
.
get
<
std
::
string
>
(
"model"
).
size
()
>
0
?
parser
.
get
<
std
::
string
>
(
"model"
)
:
yml_read_path
;
ply_read_path
=
parser
.
get
<
std
::
string
>
(
"mesh"
).
size
()
>
0
?
parser
.
get
<
std
::
string
>
(
"mesh"
)
:
ply_read_path
;
numKeyPoints
=
!
parser
.
has
(
"keypoints"
)
?
parser
.
get
<
int
>
(
"keypoints"
)
:
numKeyPoints
;
ratio
=
!
parser
.
has
(
"ratio"
)
?
parser
.
get
<
float
>
(
"ratio"
)
:
ratio
;
fast_match
=
!
parser
.
has
(
"fast"
)
?
parser
.
get
<
bool
>
(
"fast"
)
:
fast_match
;
...
...
samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/main_registration.cpp
View file @
80b4f99b
...
...
@@ -80,7 +80,7 @@ static void onMouseModelRegistration( int event, int x, int y, int, void* )
}
/** Main program **/
int
main
(
int
argc
,
char
*
argv
[]
)
int
main
()
{
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