locpix.img_processing.watershed.watershed_segment#
- watershed_segment(img, file_name='Image', coords=None) ndarray [source]#
Perform watershed segmentation on image - with option either to provide coordinates of markers (coords) or obtain annotation using a widget.
- Parameters:
img (np.ndarray) – Image which performing watershed on
file_name (string) – Name of the image
coords (list) – List of tuples where each tuple represents coordinate of a marker (x,y)
- Returns:
Numpy array containing integer labels, each representing different segmented region of the input
- Return type:
labels (np.ndarray)