hl2ss icon indicating copy to clipboard operation
hl2ss copied to clipboard

Registering depth information into RGB image

Open JVal123 opened this issue 1 year ago • 1 comments

Hello! I've recently updated the hl2ss version from 1.012.0 to 1.025.0.

Currently, I'm using the sample_integrator_pv.py script, which performs RGBD integration using Open3D. I've modified the script, simply to save both the rgb and depth images obtained by this script.

One problem arises, however. My objective is for the rgb images to have the depth information registered on them. This is already what happens in the old hl2ss version by default, but not on the new version. I simply get the rgb without any depth information. After comparing the two, I noticed that there is no depth registration being made onto the rgb image on the new version.

How can I obtain it in the new version?

JVal123 avatar Jan 05 '24 15:01 JVal123

Hello, The RGBD pair is given by the color and depth variables after line 140. Then, for example, you can insert code in line 141 to save both color and depth to files. Registration is done in lines 131-140.

jdibenes avatar Jan 09 '24 20:01 jdibenes