hl2ss icon indicating copy to clipboard operation
hl2ss copied to clipboard

How to calculate the distortion parameters.

Open MayooranT opened this issue 2 months ago • 1 comments

I am using the depth image to use it from ROS2 end for my project.

I get the undistort map from the longthrow depth image calibration mode. Now i have to use it for the CameraInfo msg as one of ROS2 supported distortion models. If the "plumb_bob" model is suitable, is there any way I can calculate the 5 parameters (k1, k2, t1, t2, k3) for this model?

Or should I use this undistort map in some other way?

MayooranT avatar Oct 28 '25 18:10 MayooranT

You can undistort depth images using https://github.com/jdibenes/hl2ss/blob/fcc4e84108c79a1f7eb15f607a438b4086423e79/viewer/sample_integrator_pv.py#L110

jdibenes avatar Oct 28 '25 20:10 jdibenes