Ask Your Question

Revision history [back]

Chessboard detection fails on fisheye image

I am trying to perform calibration for a fisheye lens using the omnidir module. I am finding that the chessboards are not detected on many of the calibration images.

For example, here is an image that it fails on. Why would this be? it has no occlusion and good lighting. I also tried downsampling to half the resolution as I heard that might help. Using opencv3-3.1.0_3 on OSX.

image description

Chessboard detection fails on fisheye image

I am trying to perform calibration for a fisheye lens using the omnidir module. I am finding that the chessboards are not detected on many of the calibration images.

For example, here is an image that it fails on. Why would this be? it has no occlusion and good lighting. I also tried downsampling to half the resolution as I heard that might help. Using opencv3-3.1.0_3 on OSX.

image description

EDIT: After recompiling with DEBUG_CHESSBOARD enabled, I found that the issue was caused by the new binarization failing. The debug output shows what the old binarization algorithm would have given, and it's clear that the old algorithm gave the correct result.

Old binarization: image description

New binarization: image description

This seems like a bug in opencv, so I will report it.