Skip to content

Commit 08a8e10

Browse files
committed
Fix image res assignment.
1 parent 71f9680 commit 08a8e10

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/measure/prep_display_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ def display(
128128
if image_res[0] < 0:
129129
new_height = image_res[1]
130130
ratio = new_height / float(image_width)
131-
image_res[0] = int(ratio * image_width)
131+
image_res = (int(ratio * image_width), new_height)
132132

133133
elif image_res[1] < 0:
134134
new_width = image_res[0]
135135
ratio = new_width / float(image_height)
136-
image_res[1] = int(ratio * image_height)
136+
image_res = (new_width, int(ratio * image_height))
137137

138138
# set image within screen
139139
img_og = cv2.resize(img_og, image_res, interpolation=interpolation)

0 commit comments

Comments
 (0)