Ask Your Question
1

opencv calibration, must I use odd number of grid in each row/col?

asked 2015-10-19 23:18:31 -0600

albertxavier gravatar image

Hi!

I want to use OpenCV for camera calibration .

1) Someone told me that the grid number of each row/column should be ODD, is it right? Why I shouldn't use an even number of corners?

2) Which is better, symmetric/Asymmetric pattern?

edit retag flag offensive close merge delete

Comments

1

Have you searched on the docs?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-10-20 04:00:36 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-10-20 04:31:49 -0600

1) Someone told me that the grid number of each row/column should be ODD, is it right? Why I shouldn't use an even number of corners?

2) Which is better, symmetric/Asymmetric pattern?

The problem lies within the calibration pattern properties itself. Since the algorithm looks for corners, it can happen (it does not always do this), that it matches the wrong corners, because for the algorithm there is no way of telling that the upper left corner is actually not the bottom right corner. This happens due to the symetry of an even number of rows or cols.

So basically

  • If you just want to use even number of rows and cols --> it will work in 80% of the cases, and you are fine.
  • If your calibration just seems poor and completely off, then the software did something tricky, by mismatching the calibration patterns in both images (which can be seen by printing the matches), then go for an uneven number of rows and cols.

The advantage of having uneven rows or cols, is that your pattern is not repeated and thus, the top left corner will always be the top left corner due to the position of the surrounding corners.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-10-19 23:17:45 -0600

Seen: 515 times

Last updated: Oct 20 '15