OpenCV Stereo confidence
<p>Is there a way to get out the confidence from OpenCV's Stereo matching algorithms in Python?</p>

<p>I wish to eliminate points from the generated point cloud based on these confidence values.</p>

<p>Unfortunately, OpenCV does not seem to provide correlation scores with the stereo matcher functions. If no correspondance is found, pixel appears black on disparity map but you have to trust the algorithms implementation.</p>

<p>You can still compute your own error estimate with respect to your camera parameters, baseline and range (see <a href="https://siddhantahuja.wordpress.com/2009/07/24/how-to-select-the-proper-disparity-value-for-stereo-vision/" rel="nofollow">this</a> page) or if you really need precision or high confidence in your result, you could try to implement some subpixel accuracy correlation such as <a href="http://xanthippi.ceid.upatras.gr/people/evangelidis/encc/" rel="nofollow">this</a> one. Hope this helps.</p>

python opencv computer-vision