Ask Your Question

Revision history [back]

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.