Awful disparity map using StereoBM
Hello. I am trying to make cloud point from pair of images. I am using StereoBM to create disparity map, but results is very, very bad.
I see lot of tutorials, such this, but I can't create good disparity map. I also trying to use StereoSGBM, but results is same. My images are rectified well and this is a pruf (it's an optical flow from stereo images, all lines are horizontal)
How can I do good disparity map? Hope you'll help.
P.S.
- I can't find SADWindowSize in StereoBM.
- I heared about Graph Cut algorytm, but I can't find it in OpenCV.
Try understanding the parameters you are adjusting. The values you appear to be using are not good choices. Understanding the simplest stereo block matching algorithm will help you, I suggest you consult Google Scholar for papers.
Try the default stereo_matching sample: https://github.com/Itseez/opencv/blob...
Probably it won't help to you, but it may be useful to someone else.
I think you are using captured images conversly. You are should swap getted images from your camera, so that left capture image becomes "right.jpg" and right capture image becomes "left.jpg". In my case it is worked.
I just want to restore top source - this