Skip to content

Commit d6dea04

Browse files
committed
Rescale Factor goes by the power instead of linear
1 parent ac66036 commit d6dea04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Utils/SFR_ImageResizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def resize_image(currFile, resizeFactor, path):
99
from skimage import io
1010
from skimage.transform import resize
1111

12-
resizeFactor = resizeFactor + 1
12+
resizeFactor = pow(2, resizeFactor)
1313
image = io.imread(path + currFile)
1414
image_resized = resize(image, (image.shape[0] // resizeFactor, image.shape[1] // resizeFactor), anti_aliasing = True)
1515
io.imsave(path + currFile, image_resized, check_contrast=False)

0 commit comments

Comments
 (0)