1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-21 06:11:09 +08:00

Merge pull request #1729 from alalek:fix_ovis_build

This commit is contained in:
Alexander Alekhin
2018-08-23 11:33:48 +00:00

View File

@@ -38,10 +38,10 @@ void createPointCloudMesh(const String& name, InputArray vertices, InputArray co
{ {
int color_type = colors.type(); int color_type = colors.type();
CV_Assert(_app); CV_Assert(_app);
CV_CheckTypeEQ(vertices.type(), CV_32FC3, "") CV_CheckTypeEQ(vertices.type(), CV_32FC3, "vertices type must be Vec3f");
CV_Assert(vertices.isContinuous()); CV_Assert(vertices.isContinuous());
if (!colors.empty()) if (!colors.empty())
CV_CheckType(color_type, color_type == CV_8UC3 || color_type == CV_8UC4); CV_CheckType(color_type, color_type == CV_8UC3 || color_type == CV_8UC4, "unsupported type");
// material // material
MaterialPtr mat = MaterialManager::getSingleton().create(name, RESOURCEGROUP_NAME); MaterialPtr mat = MaterialManager::getSingleton().create(name, RESOURCEGROUP_NAME);