Skip to content

Commit 32bbd56

Browse files
committed
REV: Revert opencv bug fix
- Revert opencv bug fix
1 parent ef992c2 commit 32bbd56

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tiatoolbox/utils/transforms.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ def imresize(img, scale_factor=None, output_size=None, interpolation="optimise")
114114
interpolation = utils.misc.parse_cv2_interpolaton(interpolation)
115115

116116
# Resize the image
117-
# Handle case for 1x1 images which cv2 v4.5.4 no longer handles
118-
if img.shape[0] == img.shape[1] == 1:
119-
return img.repeat(output_size[1], 0).repeat(output_size[0], 1)
120117
return cv2.resize(img, tuple(output_size), interpolation=interpolation)
121118

122119

0 commit comments

Comments
 (0)