why are the red rectangle areas not of the same size?

asked 2018-11-08 10:55:34 -0500

image description

I am first trying the stereocalibration and stereorectify with OpenCV3 on VS2017. But the red rectangle areas not of the same size all the time. Why? I have used 13 pairs of pictures for calibration.

edit retag flag offensive close merge delete

Comments

question is unclear.

what do those red rectangles mean, and where is the code for it ?

berak gravatar imageberak ( 2018-11-09 01:25:00 -0500 )edit

if (useCalibrated) { Rect vroi(cvRound(validRoi[k].xsf), cvRound(validRoi[k].ysf), cvRound(validRoi[k].widthsf), cvRound(validRoi[k].heightsf)); rectangle(canvasPart, vroi, Scalar(0, 0, 255), 3, 8); }

Tyrone2142 gravatar imageTyrone2142 ( 2018-11-10 04:12:50 -0500 )edit

I don't understand where 'validRoi[k]' comes from and means... The rectangle areas of the test pictures provided by OpenCV seem to be of the same size, but mine don't...

Tyrone2142 gravatar imageTyrone2142 ( 2018-11-10 04:16:56 -0500 )edit

oh , it seems to be from here ?

berak gravatar imageberak ( 2018-11-10 04:24:42 -0500 )edit

yes. I was trying to run the test code provided by OpenCV, and this problem showed up...

Tyrone2142 gravatar imageTyrone2142 ( 2018-11-10 08:41:21 -0500 )edit