Ask Your Question

Dean's profile - activity

2016-06-22 19:23:13 -0500 answered a question How to get the right view disparity map with OpenCV 3.0

I believe this is due to negative disparity values. If you look at the source code for createRightMatcher it is setting a negative minimum disparity since it now represents right to left disparity.

I got around this by using a scale factor of -1 in getDisparityVis.

I've also found good results by flipping the left and right images horizontally, using just the same left matcher to do disparity, then flipping the disparity map back. But for some reason the filter does not like this, it seems to break filtering I think because the images don't align as expected. I didn't get a chance to figure that one out yet.

Hope this helps.