clustertracking.masks.binary_mask_multiple

clustertracking.masks.binary_mask_multiple(coords_rel, shape, radius, include_edge=True, return_masks=False)[source]

Creates multiple elliptical masks.

Parameters:

coords_rel : ndarray (N x 2 or N x 3)

coordinates

shape : tuple

shape of the image

radius : number or tuple of number

size of the masks