Replies: 1 comment 2 replies
-
Hi @malteekj, thanks for reporting this! I can't reproduce your issue with some simple code: import napari
from skimage import data
viewer = napari.view_image(data.astronaut(), interpolation='spline36') With this code, the interpolation is set correctly as far as I can tell. Can you provide a minimal example with code that reproduces the bug for you? PS: next time you find a bug, it's better if you open an issue on the issue tracker, where also more people will see it! :) EDIT:
I doubt this is the issue, because the different samplings are all implemented on the the GPU shader, and only one of them can be use at any time, afaik! |
Beta Was this translation helpful? Give feedback.
-
It seems like there is a bug in the interpolation of the viewer. If state the interpolation from the beginning like:
viewer = napari.view_image(image, interpolation='spline36')
or
layer.interpolation = 'spline36'
I get artifacts in the image:
However, if instead open napari and choose "spline36" from the drop down menu in the GUI, I get a much smoother image:
Also, if I start out by "nearest", and then do "spline36" after, then I get the nice image:
My guess is that it's something along the lines of the images first being upsampled with nearest, before it's resampled with splines, while this is not done when only using splines from the beginning?
Beta Was this translation helpful? Give feedback.
All reactions