Is your feature request related to a problem? Please describe.
We started using a new RealSense, namely the short-range camera D405, which can provide good depth maps for object as near as 7 cm to the camera.
As we tipically do, it is always useful to visualize the depth map in a yarpview using the depthimage_to_rgb portmonitor for debugging or just to quickly check that the camera is working as expected.
Unfortunately, the depthimage_to_rgb portmonitor is ignoring any value of depth lower than 0.2 m:
Describe the solution you'd like
Would it be possible to lower that value to something smaller, e.g. 0.01 m?
I can open a PR in case.
Additional context
This is an example of the depth visualization using the current configuration, min = 0.2:

while this is the same scene after changing min to 0.01:

cc @randaz81
Is your feature request related to a problem? Please describe.
We started using a new RealSense, namely the short-range camera D405, which can provide good depth maps for object as near as 7 cm to the camera.
As we tipically do, it is always useful to visualize the depth map in a
yarpviewusing thedepthimage_to_rgbportmonitor for debugging or just to quickly check that the camera is working as expected.Unfortunately, the
depthimage_to_rgbportmonitor is ignoring any value of depth lower than0.2 m:yarp/src/portmonitors/depthimage_to_rgb/DepthImage2.cpp
Line 52 in 51292e3
Describe the solution you'd like
Would it be possible to lower that value to something smaller, e.g.
0.01 m?I can open a PR in case.
Additional context
This is an example of the depth visualization using the current configuration,
min = 0.2:while this is the same scene after changing
minto0.01:cc @randaz81