Skimage - Weird results of resize function

Viewed 14012

I am trying to resize a .jpg image with skimage.transform.resize function. Function returns me weird result (see image below). I am not sure if it is a bug or just wrong use of the function.

import numpy as np
from skimage import io, color
from skimage.transform import resize

rgb = io.imread("../../small_dataset/" + file)
# show original image
img = Image.fromarray(rgb, 'RGB')
img.show()

rgb = resize(rgb, (256, 256))
# show resized image
img = Image.fromarray(rgb, 'RGB')
img.show()

Original image:

original

Resized image:

resized

I allready checked skimage resize giving weird output, but I think that my bug has different propeties.

Update: Also rgb2lab function has similar bug.

1 Answers
Related