I have read this example from OpenCV regarding calibrating an image using a template pattern of a chessboard. The article suggests that I can use another pattern to calibrate the function:
For stereo applications, these distortions need to be corrected first. To find all these parameters, what we have to do is to provide some sample images of a well defined pattern (eg, chess board). We find some specific points in it ( square corners in chess board). We know its coordinates in real world space and we know its coordinates in image. With these data, some mathematical problem is solved in background to get the distortion coefficients. That is the summary of the whole story. For better results, we need at least 10 test patterns.
but it doesn't go into detail about how to do this.
Are there openCV (or any another library functions) that allow me to do this?