@@ -1097,26 +1097,26 @@ void AvtVimbaCamera::updateROIConfig(Config& config) {
1097
1097
width = right_x - offset_x;
1098
1098
height = bottom_y - offset_y;
1099
1099
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;
1102
1102
config.roi_offset_x = offset_x/binning_or_decimation_x;
1103
1103
config.roi_offset_y = offset_y/binning_or_decimation_y;
1104
1104
1105
- if (config.roi_offset_x != config_.roi_offset_x || on_init_) {
1105
+ if (config.roi_width != config_.roi_width || on_init_) {
1106
1106
changed = true ;
1107
- setFeatureValue (" OffsetX " , static_cast <VmbInt64_t>(config.roi_offset_x ));
1107
+ setFeatureValue (" Width " , static_cast <VmbInt64_t>(config.roi_width ));
1108
1108
}
1109
- if (config.roi_offset_y != config_.roi_offset_y || on_init_) {
1109
+ if (config.roi_height != config_.roi_height || on_init_) {
1110
1110
changed = true ;
1111
- setFeatureValue (" OffsetY " , static_cast <VmbInt64_t>(config.roi_offset_y ));
1111
+ setFeatureValue (" Height " , static_cast <VmbInt64_t>(config.roi_height ));
1112
1112
}
1113
- if (config.width != config_.width || on_init_) {
1113
+ if (config.roi_offset_x != config_.roi_offset_x || on_init_) {
1114
1114
changed = true ;
1115
- setFeatureValue (" Width " , static_cast <VmbInt64_t>(config.width ));
1115
+ setFeatureValue (" OffsetX " , static_cast <VmbInt64_t>(config.roi_offset_x ));
1116
1116
}
1117
- if (config.height != config_.height || on_init_) {
1117
+ if (config.roi_offset_y != config_.roi_offset_y || on_init_) {
1118
1118
changed = true ;
1119
- setFeatureValue (" Height " , static_cast <VmbInt64_t>(config.height ));
1119
+ setFeatureValue (" OffsetY " , static_cast <VmbInt64_t>(config.roi_offset_y ));
1120
1120
}
1121
1121
1122
1122
if (changed && show_debug_prints_){
0 commit comments