I have a 2D array that I will save as a grayscale image using scipy.misc.toimage()
. Before doing so, I want to skew the image by a given angle, interpolating like scipy.ndimage.interpolation.rotate()
:
The image above is just to illustrate the skewing process. I am aware that I have to enlarge my image in order to contain the skewed version. How can I achieve this? I would prefer to use scipy for this.