Skewing an image using skimage

The images I am dealing with are not rectilinear. I’d like to skew the top edge of the image (make it wider than the bottom edge), so that the pixel dimensions are roughly equivalent at the top and bottom of the image. Then I’d like to crop the image back to its original size. I’m just starting out with skimage, so any help would be greatly appreciated.

Hi Andrew, and welcome to the forum!

Please have a look at:

You likely want to estimate a ProjectiveTransform, which you can do based on a set of input coordinates and output corner coordinates.

Give it a shot, and let us know if you get stuck!

1 Like