Many portions of my image are very dark or very dark red, with noise artifacts.
a. What is causing this?
i. If the reflection from a surface is either too strong (saturation) or tooweak, then the distance cannot be calculated properly and is becoming black. The "Confidence Threshold" parameter can be used to influence this behavior.
ii. Pixels that capture both the foreground and background deliver false distance values, namely halfway between those surfaces. They are filtered out as outliers and become black. The "Outlier Threshold" parameter can be used to influence how they are handled.
iii. Red and noisy sections result from disruptive signals. This can be caused by interferences from a second camera or strong stray light. No reflecting surfaces should be positioned in the vicinity of the camera. These will lead to stray light, which overwhelms the actual signal from weakly reflective objects.
b. How can I prevent this?
i. Adjust the exposure time
ii. Avoid stray light
iii. Vary the distance and the position of the camera
iv. Adjust the confidence threshold
v. Adjust the outlier tolerance
vi. Use the HDR feature