Skip to content

Commit 10c012c

Browse files
Thiemo Wiedemeyerfloe
authored andcommitted
fixed bug and simplified a formula.
1 parent 0089655 commit 10c012c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/protonect/src/registration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void Registration::depth_to_color(float mx, float my, float& rx, float& ry)
7373
(mx * color.my_x1y0) + (my * color.my_x0y1) + (color.my_x0y0);
7474

7575
rx = (wx / (color.fx * color_q)) - (color.shift_m / color.shift_d);
76-
ry = (wy / (color.fx * color_q)) * color.fy + color.cy;
76+
ry = (wy / color_q) + color.cy;
7777
}
7878

7979
void Registration::apply( int dx, int dy, float dz, float& cx, float &cy) const

0 commit comments

Comments
 (0)