myimagelib.corrLib.divide_windows¶
- myimagelib.corrLib.divide_windows(img, windowsize=[20, 20], step=10)¶
Divide an image into windows with specified size and step. Size and step can be different, so that we generate a downsampled image with either overlap or gaps.
- Parameters
img (2d array) – image
windowsize (list(int)) – window size in x and y
step (int) – distance between the centers of adjacent windows
- Returns
X,Y,I – I is the downsampled image, while X, Y are the corresponding coordinates in x an y
- Return type
2d arrays