hl2ss
hl2ss copied to clipboard
How to calculate the distortion parameters.
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?
You can undistort depth images using https://github.com/jdibenes/hl2ss/blob/fcc4e84108c79a1f7eb15f607a438b4086423e79/viewer/sample_integrator_pv.py#L110