diff --git a/samples/opengl/CMakeLists.txt b/samples/opengl/CMakeLists.txt index b322d98d72..689a5517d9 100644 --- a/samples/opengl/CMakeLists.txt +++ b/samples/opengl/CMakeLists.txt @@ -14,6 +14,7 @@ SET(OPENCV_OPENGL_SAMPLES_REQUIRED_DEPS opencv_imgproc opencv_imgcodecs opencv_geometry + opencv_ptcloud opencv_videoio opencv_highgui) ocv_check_dependencies(${OPENCV_OPENGL_SAMPLES_REQUIRED_DEPS}) diff --git a/samples/opengl/opengl_testdata_generator.cpp b/samples/opengl/opengl_testdata_generator.cpp index 2b88ea95a9..9ad422d01f 100644 --- a/samples/opengl/opengl_testdata_generator.cpp +++ b/samples/opengl/opengl_testdata_generator.cpp @@ -20,6 +20,7 @@ #include "opencv2/imgproc.hpp" #include "opencv2/highgui.hpp" #include "opencv2/geometry.hpp" +#include "opencv2/ptcloud.hpp" using namespace std; using namespace cv; @@ -510,17 +511,17 @@ int main(int argc, char* argv[]) for (const auto& res : resolutions) { - for (const auto shadingPair : shadingTxt) + for (const auto& shadingPair : shadingTxt) { cv::TriangleShadingType shadingType = shadingPair.first; std::string shadingName = shadingPair.second; - for (const auto cullingPair : cullingTxt) + for (const auto& cullingPair : cullingTxt) { cv::TriangleCullingMode cullingMode = cullingPair.first; std::string cullingName = cullingPair.second; - for (const auto modelPair : modelTxt) + for (const auto& modelPair : modelTxt) { ModelType modelType = modelPair.first; std::string modelName = modelPair.second;