OpenCV StereoSGBM gives really bad disparity map
问题 these is my calibration code: void calibrate() { int numBoards = 10; int board_w = 6; int board_h = 9; Size board_sz = Size(board_w, board_h); int board_n = board_w*board_h; vector<vector<Point3f> > object_points; vector<vector<Point2f> > imagePoints1, imagePoints2; vector<Point2f> corners1, corners2; vector<Point3f> obj; for (int j=0; j<board_n; j++) { obj.push_back(Point3f(j/board_w, j%board_w, 0.0f)); } Mat img1, img2, gray1, gray2; VideoCapture cap1(0); VideoCapture cap2(1); int success =