eda_plugin.utility.image_processing.getTilePositionsV2

eda_plugin.utility.image_processing.getTilePositionsV2(image, targetSize=128)

Generate tuples with the positions of tiles to split up an image withan overlap.

Calculates the number of tiles in a way that allows for only full tiles to be needed.

Args:

filePath (PIL image): Image.open of a tiff file. Should be square and ideally from the geometric series (128, 256, 512, 1024, etc) targetSize (int, optional): target square size. Defaults to 128.

Returns:

[type]: [description]