Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

stereo calibration needs several image pairs, it does not work with a single pair.

objectPoints should contain vector of vectors of points of type Point3f

so, for each pair of chessboard images, you need to append a list of points for both object and imagepts.

(tl;dr: you need another pair of [] around it)

stereo calibration needs several image pairs, it does not work with a single pair.

objectPoints should contain vector of vectors of points of type Point3f

so, for each pair of chessboard images, you need to append a list of points for both object and imagepts.

(tl;dr: you need another pair of [] around it)

then:

  • you need more image pairs, variation in pose and distance. make iew sure to have the corners of the view covered, bc. lens distortion is largest there.
  • you must check the ret value from findChessboardCorners()and discard the whole pair, if it did not find all the corners in both images

stereo calibration needs several image pairs, it does not work with a single pair.

objectPoints should contain vector of vectors of points of type Point3f

so, for each pair of chessboard images, you need to append a list of points for both object and imagepts.

(tl;dr: you need another pair of [] around it)

then:

  • you need more image pairs, variation in pose and distance. make iew sure to have the corners of the view covered, bc. lens distortion is largest there.
  • you must check the ret value from findChessboardCorners()and discard the whole pair, if it did not find all the corners in both images