From 21f7139e51bfe0525c3f73e7cd99c086234e8b1b Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Thu, 23 Aug 2018 07:26:21 +0000 Subject: [PATCH] ovis: fix build --- modules/ovis/src/meshes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ovis/src/meshes.cpp b/modules/ovis/src/meshes.cpp index 91616b7dd..7d1c2052a 100644 --- a/modules/ovis/src/meshes.cpp +++ b/modules/ovis/src/meshes.cpp @@ -38,10 +38,10 @@ void createPointCloudMesh(const String& name, InputArray vertices, InputArray co { int color_type = colors.type(); CV_Assert(_app); - CV_CheckTypeEQ(vertices.type(), CV_32FC3, "") + CV_CheckTypeEQ(vertices.type(), CV_32FC3, "vertices type must be Vec3f"); CV_Assert(vertices.isContinuous()); 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 MaterialPtr mat = MaterialManager::getSingleton().create(name, RESOURCEGROUP_NAME);