Background model technique with disparity map

asked 2016-09-09 10:53:15 -0500

ricor29 gravatar image

If I have generated a disparity map or depth map using StereoBM then what is the best way to look for change detection in the scene? I've tried using MOG2 and other background models but in general there are just too many fluctuations (speckle noise) in the disparity map to make this viable. Is there a better way in opencv to look for change detection from stereo data?

edit retag flag offensive close merge delete


Assuming the stereo camera is not moving, why not use the rgb or greyscale images with MOG2 to give you a mask to apply to the 3D data?

Der Luftmensch gravatar imageDer Luftmensch ( 2016-09-09 20:50:43 -0500 )edit

In general I find the RGB or greyscale isn't robust enough for my purposes and is one reason why I moved to a stereo camera. The 3-D geometry makes it possible to threshold out certain planes not of interest to me. I had hoped that there would then be some standard way to use a background model with 3-D data.

ricor29 gravatar imagericor29 ( 2016-09-18 09:12:26 -0500 )edit

The OpenCV stereo algorithms are not all that great. They are very fast, but they lack accuracy and detail. If accurate and stable depth is what you want, stop wasting your time and move to a structured light depth camera like the Kinect or the Intel offerings.

Der Luftmensch gravatar imageDer Luftmensch ( 2016-09-18 19:08:32 -0500 )edit