@@ -1097,26 +1097,26 @@ void AvtVimbaCamera::updateROIConfig(Config& config) {
10971097 width = right_x - offset_x;
10981098 height = bottom_y - offset_y;
10991099
1100- config.width = width/binning_or_decimation_x;
1101- config.height = height/binning_or_decimation_y;
1100+ config.roi_width = width/binning_or_decimation_x;
1101+ config.roi_height = height/binning_or_decimation_y;
11021102 config.roi_offset_x = offset_x/binning_or_decimation_x;
11031103 config.roi_offset_y = offset_y/binning_or_decimation_y;
11041104
1105- if (config.roi_offset_x != config_.roi_offset_x || on_init_) {
1105+ if (config.roi_width != config_.roi_width || on_init_) {
11061106 changed = true ;
1107- setFeatureValue (" OffsetX " , static_cast <VmbInt64_t>(config.roi_offset_x ));
1107+ setFeatureValue (" Width " , static_cast <VmbInt64_t>(config.roi_width ));
11081108 }
1109- if (config.roi_offset_y != config_.roi_offset_y || on_init_) {
1109+ if (config.roi_height != config_.roi_height || on_init_) {
11101110 changed = true ;
1111- setFeatureValue (" OffsetY " , static_cast <VmbInt64_t>(config.roi_offset_y ));
1111+ setFeatureValue (" Height " , static_cast <VmbInt64_t>(config.roi_height ));
11121112 }
1113- if (config.width != config_.width || on_init_) {
1113+ if (config.roi_offset_x != config_.roi_offset_x || on_init_) {
11141114 changed = true ;
1115- setFeatureValue (" Width " , static_cast <VmbInt64_t>(config.width ));
1115+ setFeatureValue (" OffsetX " , static_cast <VmbInt64_t>(config.roi_offset_x ));
11161116 }
1117- if (config.height != config_.height || on_init_) {
1117+ if (config.roi_offset_y != config_.roi_offset_y || on_init_) {
11181118 changed = true ;
1119- setFeatureValue (" Height " , static_cast <VmbInt64_t>(config.height ));
1119+ setFeatureValue (" OffsetY " , static_cast <VmbInt64_t>(config.roi_offset_y ));
11201120 }
11211121
11221122 if (changed && show_debug_prints_){
0 commit comments