-
-
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.resize #6047
Comments
Hi @page200, Are you running Python 2.7 on purpose? 😱 Best, |
@mkcor My setup is dictated by attempts to get some other projects to run (not related to |
Can you specify what version of scikit-image you are having problems with? Apparently the commands suggested above don't work on whatever version it is, but if had installed it using pip you can check with It looks like since scikit-image v0.14.x, the default standard deviation for the smoothing is related to the downsampling factors: scikit-image/skimage/transform/_warps.py Lines 169 to 170 in d316fbf
It also possible to specify |
When not manually specifying per-axis values, the automatically chosen values should be appropriate rather than too large. For example, for dimensions along which the image size doesn't change, sigma should be zero. |
I agree, but it looks like that is what the code is doing even in v0.14.5? In your case: |
Maybe I misinterpreted from which dimension the blurredness comes from in the results. I'll further test with toy data. |
Description
It seems that
skimage.transform.resize
withanti_aliasing=True
smoothes too much. For example, if we want to resize a 100×100 image to 100×17, it should smoothen only the second dimension before downsampling, but it smoothes both dimensions.Version information
The text was updated successfully, but these errors were encountered: