Skip to content

Commit ad37df5

Browse files
Merge pull request #968 from annie-xd-wang/445-arbitrary-roi
2 parents 503ee45 + 5436646 commit ad37df5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/navigate/controller/sub_controllers/camera_settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ def update_experiment_values(self, *args):
319319
)
320320
return warning_message
321321

322-
center_x = (bottom_x - top_x) // 2
323-
center_y = (bottom_y - top_y) // 2
322+
center_x = (bottom_x + top_x) // 2
323+
center_y = (bottom_y + top_y) // 2
324324
else:
325325
center_x = self.default_width // 2
326326
center_y = self.default_height // 2

0 commit comments

Comments
 (0)