Skip to content

Commit 2c48445

Browse files
committed
remove duplicate undistort_depth call
1 parent c333cae commit 2c48445

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

examples/protonect/src/registration.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,11 @@ Registration::Registration(Freenect2Device::IrCameraParams depth_p, Freenect2Dev
9595

9696
for (int x = 0; x < 512; x++)
9797
for (int y = 0; y < 424; y++) {
98+
9899
undistort_depth(x,y,mx,my);
99100
undistort_map[x][y][0] = mx;
100101
undistort_map[x][y][1] = my;
101-
}
102102

103-
for (int x = 0; x < 512; x++)
104-
for (int y = 0; y < 424; y++) {
105-
undistort_depth(x,y,mx,my);
106103
depth_to_color(mx,my,rx,ry);
107104
depth_to_color_map[x][y][0] = rx;
108105
depth_to_color_map[x][y][1] = ry;

0 commit comments

Comments
 (0)