Re: [bonsai-users] Checkerboard calibration for fish-eye lens

58 views
Skip to first unread message

Gonçalo Lopes

unread,
Dec 30, 2019, 7:37:36 PM12/30/19
to Nils, Bonsai Users
Hi Nils,

The transformation induced by Undistort will indeed necessarily remove pixels from the borders.

If you want to keep them, you can add an extra border to the image before Undistort by using the ResizeCanvas operator.
Give it a larger image size and the edges will be filled with the default color. Be aware black pixels may remain in the final image as the transformation is non-linear.

Hope this helps.

On Tue, 17 Dec 2019 at 19:38, Nils <nils.n...@gmail.com> wrote:
Dear Goncalo and the rest of the Bonsai community,

I am using a lens that gives my camera a fish-eye view, which I need to undistort. I have been playing around with the "Find Chessboard Corners", "Calibrate Camera Chessboard" and "Undistort" nodes, but I can't quite get what I want. I have searched in this forum and on the Bonsai website, but I have not been able to find a lot of information about how to properly use these nodes. I have attached the script that I am using.

Basically, I have a 2m x 2m maze, and I am moving the checkerboard around this maze while the "Calibrate Camera Chessboard" continuously outputs the estimated camera intrinsic parameters. After having made sure the checkerboard have covered all edges and the center of my maze, I save the outputted estimated intrinsic parameters and then manually input them into the "Undistort" node. However, either only the area around the checkerboard gets undistorted, or there is always some parts of the maze that remain undistorted.

I have also attached two pictures, one frame showing an example of the the undistorted image as seen from the "Find Chessboard Corners" node, and one example of a frame from the from the Undistort node.

Thank you for the help.

Nils

--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/3820e4cb-46e4-4be6-a183-5658075a0ea1%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages