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
70a81db5
Commit
70a81db5
authored
Jan 01, 2014
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bugs in cloud collection and added test
parent
cb580616
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
6 deletions
+21
-6
viz3d.rst
modules/viz/doc/viz3d.rst
+4
-4
types.hpp
modules/viz/include/opencv2/viz/types.hpp
+1
-1
clouds.cpp
modules/viz/src/clouds.cpp
+0
-0
types.cpp
modules/viz/src/types.cpp
+1
-1
tests_simple.cpp
modules/viz/test/tests_simple.cpp
+15
-0
No files found.
modules/viz/doc/viz3d.rst
View file @
70a81db5
...
...
@@ -482,19 +482,19 @@ This class wraps mesh attributes, and it can load a mesh from a ``ply`` file. ::
Mat polygons;
//! Loads mesh from a given ply file
static Mesh3d load
Mesh
(const String& file);
static Mesh3d load(const String& file);
private:
/* hidden */
};
viz::Mesh3d::load
Mesh
viz::Mesh3d::load
---------------------
Loads a mesh from a ``ply`` file.
.. ocv:function:: static Mesh3d load
Mesh
(const String& file)
.. ocv:function:: static Mesh3d load(const String& file)
:param file: File name
.
:param file: File name
(for no only PLY is supported)
viz::KeyboardEvent
...
...
modules/viz/include/opencv2/viz/types.hpp
View file @
70a81db5
...
...
@@ -112,7 +112,7 @@ namespace cv
Mat
polygons
;
//! Loads mesh from a given ply file
static
Mesh3d
load
Mesh
(
const
String
&
file
);
static
Mesh3d
load
(
const
String
&
file
);
};
class
CV_EXPORTS
Camera
...
...
modules/viz/src/clouds.cpp
View file @
70a81db5
This diff is collapsed.
Click to expand it.
modules/viz/src/types.cpp
View file @
70a81db5
...
...
@@ -128,7 +128,7 @@ namespace cv { namespace viz { namespace
};
}}}
cv
::
viz
::
Mesh3d
cv
::
viz
::
Mesh3d
::
load
Mesh
(
const
String
&
file
)
cv
::
viz
::
Mesh3d
cv
::
viz
::
Mesh3d
::
load
(
const
String
&
file
)
{
return
MeshUtils
::
loadMesh
(
file
);
}
...
...
modules/viz/test/tests_simple.cpp
View file @
70a81db5
...
...
@@ -85,3 +85,18 @@ TEST(Viz, DISABLED_show_cloud_masked)
viz
.
showWidget
(
"dragon"
,
WCloud
(
dragon_cloud
));
viz
.
spin
();
}
TEST
(
Viz
,
DISABLED_show_cloud_collection
)
{
Mat
cloud
=
readCloud
(
get_dragon_ply_file_path
());
WCloudCollection
ccol
;
ccol
.
addCloud
(
cloud
,
Color
::
white
(),
Affine3d
().
translate
(
Vec3d
(
0
,
0
,
0
)).
rotate
(
Vec3d
(
1.57
,
0
,
0
)));
ccol
.
addCloud
(
cloud
,
Color
::
blue
(),
Affine3d
().
translate
(
Vec3d
(
1
,
0
,
0
)));
ccol
.
addCloud
(
cloud
,
Color
::
red
(),
Affine3d
().
translate
(
Vec3d
(
2
,
0
,
0
)));
Viz3d
viz
(
"show_cloud_collection"
);
viz
.
showWidget
(
"coosys"
,
WCoordinateSystem
());
viz
.
showWidget
(
"ccol"
,
ccol
);
viz
.
spin
();
}
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