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
cbd26a65
Commit
cbd26a65
authored
Nov 23, 2016
by
Pavel Rojtberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cnn_3dobj: fix demo_sphereview_data
parent
49399734
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
demo_sphereview_data.cpp
modules/cnn_3dobj/samples/demo_sphereview_data.cpp
+5
-6
No files found.
modules/cnn_3dobj/samples/demo_sphereview_data.cpp
View file @
cbd26a65
...
...
@@ -112,8 +112,8 @@ int main(int argc, char *argv[])
int
ite_depth
=
parser
.
get
<
int
>
(
"ite_depth"
);
String
plymodel
=
parser
.
get
<
String
>
(
"plymodel"
);
String
imagedir
=
parser
.
get
<
String
>
(
"imagedir"
);
s
tring
labeldir
=
parser
.
get
<
String
>
(
"labeldir"
);
String
bakgrdir
=
parser
.
get
<
s
tring
>
(
"bakgrdir"
);
S
tring
labeldir
=
parser
.
get
<
String
>
(
"labeldir"
);
String
bakgrdir
=
parser
.
get
<
S
tring
>
(
"bakgrdir"
);
int
label_class
=
parser
.
get
<
int
>
(
"label_class"
);
int
label_item
=
parser
.
get
<
int
>
(
"label_item"
);
float
cam_head_x
=
parser
.
get
<
float
>
(
"cam_head_x"
);
...
...
@@ -218,8 +218,7 @@ int main(int argc, char *argv[])
}
}
std
::
fstream
imglabel
;
char
*
p
=
(
char
*
)
labeldir
.
data
();
imglabel
.
open
(
p
,
fstream
::
app
|
fstream
::
out
);
imglabel
.
open
(
labeldir
.
c_str
(),
fstream
::
app
|
fstream
::
out
);
bool
camera_pov
=
true
;
/* Create a window using viz. */
viz
::
Viz3d
myWindow
(
"Coordinate Frame"
);
...
...
@@ -227,7 +226,7 @@ int main(int argc, char *argv[])
myWindow
.
setWindowSize
(
Size
(
image_size
,
image_size
));
/* Set background color. */
myWindow
.
setBackgroundColor
(
viz
::
Color
::
gray
());
myWindow
.
spin
();
myWindow
.
spin
Once
();
/* Create a Mesh widget, loading .ply models. */
viz
::
Mesh
objmesh
=
viz
::
Mesh
::
load
(
plymodel
);
/* Get the center of the generated mesh widget, cause some .ply files, this could be ignored if you are using PASCAL database*/
...
...
@@ -249,7 +248,7 @@ int main(int argc, char *argv[])
cam_y_dir
.
x
=
cam_head_x
;
cam_y_dir
.
y
=
cam_head_y
;
cam_y_dir
.
z
=
cam_head_z
;
char
*
temp
=
new
char
;
char
temp
[
1024
]
;
std
::
vector
<
String
>
name_bkg
;
if
(
bakgrdir
.
size
()
!=
0
)
{
...
...
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