geometry.cut

Cut blocks from images along a given coord_path.

supreme.geometry.cut.along_path(path, image) Cut blocks of shape from image along the specified path.

along_path

supreme.geometry.cut.along_path(path, image, shape=(3, 3), centre=None)

Cut blocks of shape from image along the specified path.

path – at each point in the path, cut out an image shape – size of image to cut out centre – define the centre of the cutout (default: (shape-1)/2)