librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

D415/D435 RGB image is not rectified at rsutil.h

Open TetsuriSonoda opened this issue 9 years ago • 6 comments

rs-align example with D415 and D435 is causing offset between color and depth.

On librealsense, D435 and D415 will return its distortion model as RS2_DISTORTION_BROWN_CONRADY. But this distortion model is not handled at rs2_project_point_to_pixel in rsutil.h (Only handled RS2_DISTORTION_MODIFIED_BROWN_CONRADY and RS2_DISTORTION_FTHETA). I think it needs to be undistorted at there.

Required Info
Camera Model D415 and D435
Firmware Version 05.08.05.00
Operating System & Version Windows8
Kernel Version (Linux Only)

TetsuriSonoda avatar Nov 20 '17 23:11 TetsuriSonoda

Are D415 and D435 available for purchase?

cynosure4sure avatar Nov 25 '17 00:11 cynosure4sure

https://click.intel.com/intelr-realsensetm-depth-camera-d415.html, out-of-stock

halton avatar Nov 27 '17 03:11 halton

I will need rectified images and depth, too. Please fix.

danielw256 avatar Nov 27 '17 15:11 danielw256

Hi @TetsuriSonoda , The depth images received from the device are already rectified with RS2_DISTORTION_BROWN_CONRADY model. Therefore rs2_project_point_to_pixel will just pass them through directly without any additional rectifications.

ev-mp avatar Nov 27 '17 16:11 ev-mp

Hi, @ev-mp , this issue not about depth image, but RGB image side. For aligned depth image to RGB, we need "rectified RGB" image with proper undistortion. But such image is not provided correctly by librealsense2 now.

TetsuriSonoda avatar Nov 27 '17 19:11 TetsuriSonoda

Hi, @ev-mp , this issue not about depth image, but RGB image side. For aligned depth image to RGB, we need "rectified RGB" image with proper undistortion. But such image is not provided correctly by librealsense2 now.

Would it be possible to get further clarification on why the RGB are not undistorted ( my understanding is that if the coefficients are set 2 zero, no undistortion is taking place).

karlita101 avatar Oct 26 '20 20:10 karlita101