How does Foxglove do calibration under the hood? #1086
Replies: 2 comments 3 replies
-
Could you please share some data including your calibration parameters so we can look into this? Including steps/code to reproduce your results with image_proc would also help. |
Beta Was this translation helpful? Give feedback.
-
Hey @jtbandes, Thanks for getting back to me. I have created a minimal example. I have created a rosbag (ros2 humble) with an Image topic and CameraInfo topic. Please view the Image topic in Foxglove and calibrate with the CameraInfo topic. You should notice some distortion along the back wall throughout the video. Rosbag: https://drive.google.com/drive/folders/1EW-1oAyUyE5X47Xfwljhtz9BAK9TKO-4?usp=sharing Then, run image_proc from the cli with: ros2 run image_proc rectify_node --ros-args -r image:=/perception/oak/raw/synced_left/image_raw -r camera_info:=/perception/oak/raw/synced_left/camera_info This will publish an image_rect topic. View in Foxglove. The distortion should be removed. Let me know if you have any questions or difficulty accessing the data. I'd also be interested in if you are able to replicate the problem on your end, or if I'm doing something wrong. Note: the camera is an Oak-D Pro W PoE. Perhaps the wide angle has something to do with it? Thanks, |
Beta Was this translation helpful? Give feedback.
-
Specifically, I'm referring to when you associate a CameraInfo topic with a raw Image topic. The expected behavior is that, assuming the intrinsics and distortion coefficients are correct, Foxglove handles the undistortion/rectification of the raw image.
Does anyone know how this works under the hood? Is Foxglove using OpenCV undistort() or perhaps image_proc?
The reason I'm asking is because I was experiencing an issue where, in Foxglove, when I applied the calibration, there was still noticeable distortion in the "calibrated" image. However, when I used image_proc with the same CameraInfo and Image topic, the distortion was handled correctly.
Has anyone experienced a similar issue? The camera I was using was an Oak-D Pro W PoE.
Beta Was this translation helpful? Give feedback.
All reactions