Class cv::viz::Mesh#
This class wraps mesh attributes, and it can load a mesh from a ply file. :
#include <opencv2/viz/types.hpp>Collaboration diagram for cv::viz::Mesh:
Public Types#
enum cv::viz::Mesh {
cv::viz::LOAD_AUTO = 0,
cv::viz::LOAD_PLY = 1,
cv::viz::LOAD_OBJ = 2
}Detailed Description#
This class wraps mesh attributes, and it can load a mesh from a ply file. :
Member Enumeration Documentation#
enum Mesh
|
|
|
Constructor & Destructor Documentation#
Mesh()#
Python:
Member Function Documentation#
load()#
static Mesh cv::viz::Mesh::load(
const String & file,
int type = LOAD_PLY )
Loads a mesh from a ply or a obj file.
File type** can be one of the following:
LOAD_PLY
LOAD_OBJ
Parameters
file— File nametype— File type (for now only PLY and OBJ are supported)
Member Data Documentation#
cloud#
point coordinates of type CV_32FC3 or CV_64FC3 with only 1 row
colors#
point color of type CV_8UC3 or CV_8UC4 with only 1 row
normals#
point normals of type CV_32FC3, CV_32FC4, CV_64FC3 or CV_64FC4 with only 1 row
polygons#
CV_32SC1 with only 1 row.
Raw integer list of the form: (n,id1,id2,…,idn, n,id1,id2,…,idn, …) where n is the number of points in the polygon, and id is a zero-offset index into an associated cloud.
tcoords#
CV_32FC2 or CV_64FC2 with only 1 row.
texture#
Source file#
The documentation for this class was generated from the following file:
opencv2/viz/types.hpp