clustertracking.masks.mask_image

clustertracking.masks.mask_image(coords, image, radius, origin=None, invert=False)[source]

Masks an image with elliptical masks with size radius. At every coord in coords, the mask is applied to the image. When invert=True, the coords instead of the background will be made 0. Optionally, specify the topleft coordinate (origin) of the image.