librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

[D435] point cloud surface is not smooth

Open JiaLiangAl opened this issue 8 years ago • 6 comments

Required Info
Camera Model D435
Firmware Version 05.08.06.00
Operating System & Version Windows 10
Kernel Version (Linux Only)
SDK Version RS2

I tested my newly bought Realsense D435, but I found that the quality of point cloud can't meet my requirements. Zoom in to local details,found It has a very obvious undulating wave and not a stable surface. Is that normal and how can i improve it?

default

Zoom in to detail default

JiaLiangAl avatar Jan 22 '18 10:01 JiaLiangAl

Depth generated from stereo can often suffer from this kind of noise. It really depends on:

  1. Camera calibration (we have previously provided dynamic re-calibration application, and I believe such application is also available for the D400 series, but we will have to look-up the link)
  2. Camera preset - if you are interested in depth accuracy you can prioritize it over fill rate using High Accuracy preset. Presets are available in the Viewer and also from code.
  3. Post-processing - in recent versions of the SDK we offer several post-processing algorithms that reduce depth noise. You can enable and configure them individually in the Viewer or programmatically (we are about to publish an example that shows how to do this from code)
  4. The scene - You can still get depth from the D400 series even in very bad visual conditions (when laser has to be off, and the IR image is either over or under saturated), but you will get more noise.
  5. Range - noise tend to be function of range^2, so you will get less noise up close and more at around 4-6 meters

Based on the snapshots, I would recommend to first check presets and post-processing.

We also provide Depth Quality app in this SDK that let's you play around with presets and see how different settings influence various metrics.

dorodnic avatar Jan 22 '18 12:01 dorodnic

Hi @dorodnic thanks for your quick response. I had updated my SDK to latest and used post-processing algorithms trying to improve the quality of point cloud ,actually,it worked well.

but i had a problem when i applied the post-processing algorithms to my code such as The following:

auto decimate = std::make_sharedrs2::decimation_filter(); decimate->set_option(RS2_OPTION_FILTER_MAGNITUDE, 2); depth = decimate->process(depth);

auto depth_2_disparity = std::make_sharedrs2::disparity_transform(); depth = depth_2_disparity->process(depth); auto spatial = std::make_sharedrs2::spatial_filter(); depth = spatial->process(depth); auto temporal = std::make_sharedrs2::temporal_filter(); depth = temporal->process(depth); auto disparity_2_depth = std::make_sharedrs2::disparity_transform(false); depth = disparity_2_depth->process(depth);

the result point cloud was abnormal like this: image while the normal was image

and if i removed the decimation filter ,the point cloud's shape was normal but the quality was not the same as realsense-viewer's output, the following is realsense-viewer's output image

What was wrong with my code or there was other problem that i didn't notice?

JiaLiangAl avatar Jan 23 '18 10:01 JiaLiangAl

Hi @MorsLiang I don't see anything obvious wrong, so I asked my colleague @ev-mp who implemented these filters to assist you. In addition, we are now (for some time) in the review stage of a dedicated post-processing example (source code here).

dorodnic avatar Jan 23 '18 17:01 dorodnic

Hi @dorodnic Thanks a lot,your response is really helpful for me. I has found the bug in my code, the decimate filter has reduced resolution of the depth image ,but i didnt notice this important information and i processed the depth image by the old camera intrinsic,so...

JiaLiangAl avatar Jan 24 '18 02:01 JiaLiangAl

Hi @dorodnic I am experiencing the same problem . But I am a user of real sense ROS. My question is: As a ros user, how do I modify the settings of presets and post-processing and save a customized user preset. Do I need to do it with real sense viewer? You mentioned it is doable in code, Can you please show me how?

stevensu1838 avatar Aug 15 '19 11:08 stevensu1838

Hi @dorodnic thanks for this documentation on tuning the cameras. I also have problems of ondulations, with L515 and I would like to know if there are similar guidelines (or update) for L515, which is a different technology than the Dxxx products, so it might be different advices for tuning the camera? thanks

agenis avatar Feb 16 '21 13:02 agenis