librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Edge Map Preset

Open rupak-d opened this issue 6 years ago • 6 comments

| Camera Model | {D400 } | | Firmware Version | v2.29.0 | | Operating System & Version | Linux (Ubuntu 16 | | Kernel Version (Linux Only) | 4.15.0-88 | | Platform | PC | | SDK Version | 2.29 | | Language | C | | Segment | Robot |

Issue Description

Got the edge json preset from here: https://github.com/IntelRealSense/librealsense/wiki/D400-Series-Visual-Presets#preset-table Which are the values in the file responsible for getting the edges? Will this work with a camera without the RGB module?

rupak-d avatar Mar 09 '20 21:03 rupak-d

A little more information on the Edge Map preset is available in a comment by a RealSense team member.

https://github.com/IntelRealSense/librealsense/issues/5188#issuecomment-549886043

Looking at the last 4 lines of the json file, it only makes reference to defining a depth stream.

I would speculate with an educated guess, though am not certain, that param-scanlineedgetaub is responsible for edges in the json. This is based on the variable having a much higher value in the 'Default' json file, which has clean edges as one of its characteristics, than its values in the other jsons that offer a different balance of configuration priorities.

MartyG-RealSense avatar Mar 09 '20 22:03 MartyG-RealSense

Got it to work with a depth camera by removing the "controls-color" parameters. Also found that it's actually the param-texturecountthresh & param-texturedifferencethresh values that are responsible for the edges. Would help if I got some more info regarding these 2 parameters.

rupak-d avatar Mar 09 '20 23:03 rupak-d

I'm glad you found a solution that works for you! And thanks for the edge information.

Jsons are largely based on the SDK's "Advanced Mode", which doesn't have much documentation. This is because Advanced Mode parameters interact with each other in complex ways and so Intel chose to handle them automatically with machine learning algorithms instead of document them fully. Users are still free to do trial and error experimentation with the settings though to see how it affects the image.

MartyG-RealSense avatar Mar 09 '20 23:03 MartyG-RealSense

Can we get more information regarding how it's doing the edge finding?

rupak-d avatar Mar 10 '20 16:03 rupak-d

If you are seeking cleaner edges, using a "Spatial Edge-Preserving Filter" post-processing filter has more extensive documentation. Would this meet your needs please?

https://github.com/IntelRealSense/librealsense/blob/master/doc/post-processing-filters.md#spatial-edge-preserving-filter

MartyG-RealSense avatar Mar 10 '20 16:03 MartyG-RealSense

This case will be closed after 7 days from the date of writing this if there are no further responses. Thanks!

MartyG-RealSense avatar Mar 22 '20 16:03 MartyG-RealSense