I am trying to use the resize function using aliasing exactly as described in the documentation: http://scikit-image.org/docs/dev/auto_examples/transform/plot_rescale.html
from skimage.transform import resize
im_test = resize(im_test, (im_test.shape[0] / 3, im_test.shape[1] / 3),anti_aliasing=True)
However this returns:
Scikit image: resize() got an unexpected keyword argument 'anti_aliasing'
What is the reason for this? Is anti_aliasing on by default? What is the best way to resize an image with anti aliasing if this function can't be used?
Checking the code here with git blame, it seems it was introduced on 19.09.2017.
The only release version supporting this currently should be: v0.13.1, which you will need then!
For checking, what kind of version you are using currently, i recommend opening your interpreter (of your used python-distribution) and do:
import skimage as sk
sk.__version__
# '0.13.0' i would not be able to use it, it seems
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With