Depth Confidence Filtering

You can retrieve a confidence map that represents the confidence of a given distance measure (Z) for every pixel (X, Y) in the image. Confidence values vary between 0 and 100, 0 representing the best confidence value possible, and 100 the most unconfident one.

sl::Mat confidence_map;
zed.retrieveMeasure(confidence_map,MEASURE_CONFIDENCE);
confidence_map = sl.Mat()
zed.retrieve_measure(confidence_map, sl.MEASURE.MEASURE_CONFIDENCE)
ZEDMat confidence_map = new ZEDMat();
zed.RetrieveMeasure(confidence_map, MEASURE.CONFIDENCE);