autopew.image

Submoudle for working with image data, used in interactive elements of autopew.

class autopew.image.PewImage(img, extent=None, transform=None)[source]
affine_transform(A, resample=0, reversey=True, reverserotation=False)[source]

Transform the image via an affine transformation matrix using PIL.

load_image(img)[source]

Load an image and deal with formatting etc.

maprgb()[source]

Convert the image to RGB arrays.

thumb(frac=0.05, resample=<Resampling.BILINEAR: 2>)[source]

Return a thumbnail downsampled version of the image.