Skip to content

Commit

Permalink
another try at fixing linux errors
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed May 12, 2020
1 parent de9ca9b commit 2f43072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/librealsense2/rsutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ static void rs2_project_point_to_pixel(float pixel[2], const struct rs2_intrinsi
float r2 = x * x + y * y;
float f = 1 + intrin->coeffs[0] * r2 + intrin->coeffs[1] * r2*r2 + intrin->coeffs[4] * r2*r2*r2;

auto xf = x * f;
auto yf = y * f;
float xf = x * f;
float yf = y * f;

float dx = xf + 2 * intrin->coeffs[2] * x*y + intrin->coeffs[3] * (r2 + 2 * x*x);
float dy = yf + 2 * intrin->coeffs[3] * x*y + intrin->coeffs[2] * (r2 + 2 * y*y);
Expand Down

0 comments on commit 2f43072

Please sign in to comment.