added support of texture for mesh

This commit is contained in:
Anatoly Baksheev
2014-01-13 00:46:24 +04:00
parent 74206e0159
commit 625c35a9f9
6 changed files with 99 additions and 6 deletions

View File

@@ -98,6 +98,11 @@ namespace cv
CV_EXPORTS void writeCloud(const String& file, InputArray cloud, InputArray colors = noArray(), InputArray normals = noArray(), bool binary = false);
CV_EXPORTS Mat readCloud (const String& file, OutputArray colors = noArray(), OutputArray normals = noArray());
///////////////////////////////////////////////////////////////////////////////////////////////
/// Read mesh. Only ply format is supported now
CV_EXPORTS Mesh readMesh (const String& file);
///////////////////////////////////////////////////////////////////////////////////////////////
/// Read/write poses and trajectories

View File

@@ -113,6 +113,8 @@ namespace cv
//! where n is the number of points in the poligon, and id is a zero-offset index into an associated cloud.
Mat polygons;
Mat texture, tcoords;
//! Loads mesh from a given ply file
static Mesh load(const String& file);
};