Skip to content

Commit

Permalink
Merge branch '1.9.x' of github.com:orbbec/OrbbecSDK into 1.9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
zhonghong322 committed Jan 17, 2024
2 parents 2fb1df5 + 1f0881b commit 2a30a94
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 2a30a94

Please sign in to comment.