Ask Your Question

why the order of colors in drawChessboardCorners() changes?

asked 2020-09-12 16:29:05 -0500

Abeer0d gravatar image

updated 2020-09-13 04:05:38 -0500

I'm doing camera calibration and I noticed that images could have different order in coloring when using the function (drawchessboardcorner) and I removed the images that don't match the dominant order to see the difference in the final result and the mean error decreased a bit (from 0.1 to 0.08), does that mean anything?

here's the two images

image description

edit retag flag offensive close merge delete



You have to use the asymmetric chessboard pattern if you want to have unique chessboard pose.

Eduardo gravatar imageEduardo ( 2020-09-13 04:41:26 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2020-09-13 03:41:17 -0500

berak gravatar image

updated 2020-09-13 04:17:10 -0500

the color is choosen according to the y position in the image, so that's pretty arbitrary, meaningless.

on the other hand, if you notice a color difference it means, e.g the y position for the top-left quare is not the same in the left and right image, so you either tilted the whole camera pair , or one of them does not look straight, please check.

again, the epilines later must be absolutely horizontal, so take care to align your cams properly.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-09-12 16:29:05 -0500

Seen: 34 times

Last updated: Sep 13