align-depth-color
Last updated
Last updated
The depth sensor and the RGB sensor are positioned differently on the camera, resulting in a slight displacement between the images captured by each sensor. To align the depth and RGB images, we need to enable the "Registration" setting.
Registration disabled
Registration enabled
Modify from opencv_viewer. After getting color and depth frame, we use opencv addWeighted
function to overlap these two images.
To turn on/off registration, Use setImageRegistrationMode
in SDK and give proper parameter.
Use variable enableRegistration
to determinate whether to enable registration. When press 'a' on keyboard, turn on/off registration.