Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scikit image: resize() got an unexpected keyword argument 'anti_aliasing'

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?

like image 387
ru111 Avatar asked Nov 18 '17 18:11

ru111


1 Answers

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
like image 175
sascha Avatar answered Sep 20 '22 12:09

sascha