Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/registration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void Registration::apply(const Frame *rgb, const Frame *depth, Frame *undistorte
float *p_filter_map = NULL;

// map for storing the color offset for each depth pixel
int *depth_to_c_off = new int[size_depth];
int depth_to_c_off[size_depth];
int *map_c_off = depth_to_c_off;

// initializing the depth_map with values outside of the Kinect2 range
Expand Down Expand Up @@ -247,7 +247,6 @@ void Registration::apply(const Frame *rgb, const Frame *depth, Frame *undistorte
*registered_data = c_off < 0 ? 0 : *(rgb_data + c_off);
}
}
delete[] depth_to_c_off;
}

/**
Expand Down