You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is already possible to shear images in skimage (example).
However, some information of the image will get lost during the shear, when the shape of the plot is preserved.
In some cases it might be useful to preserve all image information and therefore change the shape of the plot with some zero-padding.
Suggestion:
An option for padding zeros when shearing an image.
The real issue is that we don't have any support at all for negative coordinates, so any shear that extends into negative territory will be lost. So the way scikit-image would see your output is as a shear + translate down by ~350 pixels. This is readily expressed by an affine transform in scipy.ndimage.
Long term, I think the solution is for affine_transform to take in not just output_shape, but rather output_coordinates.
Anyway, this is all tricky and will require some careful thought for the API, but we'll definitely work on improving things here!
Description
It is already possible to shear images in skimage (example).
However, some information of the image will get lost during the shear, when the shape of the plot is preserved.
In some cases it might be useful to preserve all image information and therefore change the shape of the plot with some zero-padding.
Suggestion:
An option for padding zeros when shearing an image.
Implementation
One naive way to do so is like this:
Further notes:
I found #1779 , #1975 and #3548 as issues and pr that also address the shear of images.
The text was updated successfully, but these errors were encountered: