From 1f0881baddf7c42de4f594f0dd549d53b131da2d Mon Sep 17 00:00:00 2001 From: Joe Dong Date: Wed, 17 Jan 2024 10:11:57 +0800 Subject: [PATCH] fixed compile error --- examples/cpp/Sample-Transformation/Transformation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/cpp/Sample-Transformation/Transformation.cpp b/examples/cpp/Sample-Transformation/Transformation.cpp index b62de45f..41059654 100644 --- a/examples/cpp/Sample-Transformation/Transformation.cpp +++ b/examples/cpp/Sample-Transformation/Transformation.cpp @@ -115,7 +115,7 @@ int depthPointCloudTransformation(std::shared_ptr device, int number for(uint32_t i = 0; i < height; i++) { for(uint32_t j = 0; j < width; j++) { - OBPoint2f sourcePixel = { j, i }; + OBPoint2f sourcePixel = { static_cast(j), static_cast(i) }; OBPoint3f targetPixel = {}; float depthValue = (float)pDepthData[i * width + j]; @@ -154,7 +154,7 @@ int depthPointCloudTransformation(std::shared_ptr device, int number for(uint32_t i = 0; i < height; i++) { for(uint32_t j = 0; j < width; j++) { - OBPoint2f sourcePixel = { j, i }; + OBPoint2f sourcePixel = { static_cast(j), static_cast(i) }; OBPoint3f targetPixel = {}; float depthValue = (float)pDepthData[i * width + j];