I have tried all the presets and the only ones that works are FASTACCURACY and HIGHDETAIL. All the others fail in the same way (including DEFAULT), all complaining about the median filter. Interestingly, I can't see an option to enable or not a median filter.
The filter that seems to be doing the better job is the spatial one. Maybe I need to increase further the radius, and maybe try more than one pass. Speckle does not seem to be doing much, even without the spatial filter.
This is the latest depthai-v3 on ROS jazzy.
Here is my configuration:
/camera:
ros__parameters:
driver:
i_publish_tf_from_calibration: false
i_enable_ir: false
i_tf_imu_from_descr: "true"
pipeline_gen:
i_pipeline_type: RGBD
i_nn_type: none
i_enable_imu: true
rgb:
i_width: 320
i_height: 200
i_resize_mode: STRETCH
i_fps: 20.0
i_synced: true # group with stereo's synced depth output via the on-device Sync node
right:
i_width: 320
i_height: 200
i_resize_mode: STRETCH
i_fps: 20.0
left:
i_width: 320
i_height: 200
i_resize_mode: STRETCH
i_fps: 20.0
stereo:
i_width: 320
i_height: 200
i_fps: 20.0
i_synced: true # group with rgb's synced output via the on-device Sync node
#i_depth_preset: ROBOTICS
i_depth_preset: FAST_ACCURACY
#i_depth_preset: HIGH_DETAIL
#i_enable_decimation_filter: false
i_enable_spatial_filter: true
i_spatial_filter_hole_filling_radius: 15
i_spatial_filter_alpha: 0.3
i_spatial_filter_delta: 0
i_spatial_filter_num_iterations: 1
i_enable_speckle_filter: true
i_speckle_filter_speckle_range: 50
#i_enable_temporal_filter: false
#i_enable_threshold_filter: false
i_subpixel: true
i_lr_check: true
i_stereo_conf_threshold: 0
imu:
i_enable_rotation: false
nn:
i_nn_config_path: depthai_ros_driver/mobilenet
i_disable_resize: true