How to get depth low confidence value?
| Required Info | |
|---|---|
| Camera Model | SR300 |
| Firmware Version | 3.21.0 |
| Operating System & Version | Ubuntu 14.04 |
| Kernel Version (Linux Only) | 4.4.0.63 |
| Build System | Makefile |
I wonder, how to get depth low confidence value with librealsense?
Am I right that it is different from confidence threshold? RealSense SDK has two different options for them, at least.
Or how can I distinguish invalid values in depth stream?
@yvoronov-artec The confidence map is computed in software in the RealSense SDK. I can't speak to the algorithmic reason, but the computed confidence map for SR300/F200 is simply the IR image with a (3x3?) blur kernel applied. A high-intensity IR value basically means there's a high likelihood that the computed depth map on SR300 is valid.
Sorry, I am not quite sure I understand what you mean. Let me clarify my view.
There is a depth low confidence value for the depth images from RealSense. I can get this value through RealSense SDK by getting property PROPERTY_DEPTH_LOW_CONFIDENCE_VALUE. In the same time I could not find similar property in librealsense package. So my question is -
Is there any similar property in librealsense that I could have missed? If not, can anyone provide a snippet to calculate this exact value?
Thanks!
librealsense is developed independently of the SDK so you'll need to invent your own mechanism here. From my understanding, PROPERTY_DEPTH_LOW_CONFIDENCE_VALUE just sets the threshold by which intensity values are considered "bad" in the synthetic confidence map.
You can retrieve the 8 or 16 bit IR image, which is perfectly rectified to the depth map in SR300. If the intensity of the pixel is < 32 or 128 or 512 (LOW_CONFIDENCE_VALUE, don't know about the scale) and this value is below your threshold in the intensity image, then you can discard this pixel in the depth map.
In Windows RealSense SDK (2016) - those are indeed two different values. PROPERTY_DEPTH_LOW_CONFIDENCE_VALUE is the pixel value for pixels with low confidence (confidence lower than confidence threshold property) . Low confidence value is supposed to be 0 for SR300. Do you get a different value for this property?