Ask Your Question

Revision history [back]

The disparity map looks like it contains outliers, which can place the reprojected point far out of the scene. OpenCV has a function, filterSpeckles, to clean the disparity map of such outliers. You'll have to play with the parameters, especially maxSpeckleSize. In general, the larger your block size used in the stereo matching stage, the larger maxSpeckleSize needs to be.