Skip to content

Commit

Permalink
Merge pull request #934 from stereolabs/fix_plane_detection
Browse files Browse the repository at this point in the history
Fix plane detection
  • Loading branch information
Myzhar authored Feb 24, 2024
2 parents 0926453 + f36a480 commit 5d7b700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zed_nodelets/src/zed_nodelet/src/zed_wrapper_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5266,7 +5266,7 @@ void ZEDWrapperNodelet::clickedPtCallback(geometry_msgs::PointStampedConstPtr ms
float c_x = zedParam.left_cam.cx;
float c_y = zedParam.left_cam.cy;

float out_scale_factor = mMatResol.width / mCamWidth;
float out_scale_factor = static_cast<float>(mMatResol.width) / mCamWidth;

float u = ((camX / camZ) * f_x + c_x) / out_scale_factor;
float v = ((camY / camZ) * f_y + c_y) / out_scale_factor;
Expand Down

0 comments on commit 5d7b700

Please sign in to comment.