Skip to content

Commit

Permalink
fixed compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
jian-dong committed Jan 17, 2024
1 parent 61b6c1c commit 1f0881b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/cpp/Sample-Transformation/Transformation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ int depthPointCloudTransformation(std::shared_ptr<ob::Device> 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<float >(j), static_cast<float>(i) };
OBPoint3f targetPixel = {};
float depthValue = (float)pDepthData[i * width + j];

Expand Down Expand Up @@ -154,7 +154,7 @@ int depthPointCloudTransformation(std::shared_ptr<ob::Device> 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<float>(j), static_cast<float>(i) };
OBPoint3f targetPixel = {};
float depthValue = (float)pDepthData[i * width + j];

Expand Down

0 comments on commit 1f0881b

Please sign in to comment.