Skip to content

Commit

Permalink
Update default exposure params to improve image quality (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattalvarado authored Nov 6, 2024
1 parent 06041d0 commit 72c7017
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions multisense_ros/cfg/multisense.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ for feature_name, feature in SupportedFeatures.__members__.items():
gen.add("fps", double_t, 0, "FPS", 10.0, 1.0, 30.0)
roi_width = 1920
roi_height = 1200
auto_exposure_threshold = 0.95
auto_exposure_threshold = 0.85
#endif

if cfg.name.find('st21_sgm_vga_imu') == -1:
Expand All @@ -185,15 +185,15 @@ for feature_name, feature in SupportedFeatures.__members__.items():
if cfg.name.find('st21_sgm_vga_imu') == -1 and cfg.name.find('remote_head_vpb') == -1:
if cfg.ar0234:
gen.add("gain", double_t, 0, "SensorGain", 1.68421, 1.68421, 16.0)
gen.add("gamma", double_t, 0, "SensorGamma", 1.0, 1.0, 2.2)
gen.add("gamma", double_t, 0, "SensorGamma", 2.2, 1.0, 2.2)
else:
gen.add("gain", double_t, 0, "SensorGain", 1.0, 1.0, 8.0)
#endif

gen.add("auto_exposure", bool_t, 0, "AutoExposure", True)

if cfg.ar0234:
gen.add("auto_exposure_max_time", double_t, 0, "AutoExposureMaxTime", 0.033, 0.0, 0.033);
gen.add("auto_exposure_max_time", double_t, 0, "AutoExposureMaxTime", 0.01, 0.0, 0.033);
else:
gen.add("auto_exposure_max_time", double_t, 0, "AutoExposureMaxTime", 0.5, 0.0, 0.5);
#endif
Expand Down Expand Up @@ -236,9 +236,9 @@ for feature_name, feature in SupportedFeatures.__members__.items():
gen.add("aux_sharpening_limit", int_t, 0, "AuxSharpeningLimit", 0, 0, 100)

gen.add("aux_gain", double_t, 0, "AuxSensorGain", 1.68421, 1.68421, 16.0)
gen.add("aux_gamma", double_t, 0, "AuxSensorGamma", 1.0, 1.0, 2.2)
gen.add("aux_gamma", double_t, 0, "AuxSensorGamma", 2.2, 1.0, 2.2)
gen.add("aux_auto_exposure", bool_t, 0, "AuxAutoExposure", True)
gen.add("aux_auto_exposure_max_time", double_t, 0, "AuxAutoExposureMaxTime", 0.033, 0.0, 0.033);
gen.add("aux_auto_exposure_max_time", double_t, 0, "AuxAutoExposureMaxTime", 0.01, 0.0, 0.033);
gen.add("aux_auto_exposure_decay", int_t, 0, "AuxAutoExposureDecay", 7, 0, 10)
gen.add("aux_auto_exposure_thresh", double_t, 0, "AuxAutoExposureThresh", auto_exposure_threshold, 0.0, 1.0)
gen.add("aux_auto_exposure_target_intensity", double_t, 0, "AuxAutoExposureTargetIntensity", 0.5, 0.0, 1.0)
Expand Down

0 comments on commit 72c7017

Please sign in to comment.