locpix.img_processing.watershed#

Module which allows for the watershed algorithm to be implemented

Functions

get_markers(img[, file_name])

Get markers for the image for watershed_segment using PyQt6 widget Image will be converted to [0 255] greyscale image for compatibility with PyQt6 widget

watershed_segment(img[, file_name, coords])

Perform watershed segmentation on image - with option either to provide coordinates of markers (coords) or obtain annotation using a widget.

Classes

WatershedWidget(img[, coords, file_name])

Widget to visualise an image as Grayscale 8 bit, then annotate with the seeds used for watershed.