add depth argument to configure scan_processing. With this configuration scan works for both depth_regratation false and true