我正在研究 KITTI 数据集,我正在拍摄 2 张图像并找到获得 3D 点云的视差。我面临的问题是我无法获得好的视差图。大部分视差值小于 0.1 . 视差值介于 0 到 1 之间(我需要缩放它们吗)。我的音响的参数如下
cv::StereoBM sbm;
sbm.state->SADWindowSize = 9;
sbm.state->numberOfDisparities = 112;
sbm.state->preFilterSize = 5;
sbm.state->preFilterCap = 1;
sbm.state->minDisparity = 0;
sbm.state->textureThreshold = 5;
sbm.state->uniquenessRatio = 5;
sbm.state->speckleWindowSize = 0;
sbm.state->speckleRange = 20;
sbm.state->disp12MaxDiff = 64;
sbm(leftimage, rightimage,disp);
normalize(disp, disp8, 0.1, 255, CV_MINMAX, CV_8U);