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];