-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
skimage.transform.rescale fails for scale < 0.2 #5252
Comments
Thank you @pyscorcher for the report, I can reproduce the bug. In the example that you provided, the input image shape is I assume that this behavior is expected, but the raised error is extremely confusing 😕. |
Thanks for getting to the bottom of that @rfezzani @pyscorcher to help you with your work, there is a multichannel parameter that also exists in version 0.14.2 I think that should help you. Let us know! |
Is this issue fixed in 0.18.1? I face something similar when (x,y) resized dimensions are 0: from skimage import transform as trans
import numpy as np
x = np.zeros((1,1), bool)
y = trans.resize(x, (0,0)) This raises the unhelpful error message |
Description
The function
skimage.transform.rescale
throws an error for forscale < 0.2
, which is quite unexpected if you're just trying to use therescale
function. I get following error messages for these small scale factors:Way to reproduce
Version information
The text was updated successfully, but these errors were encountered: