April 2020
Intermediate to advanced
438 pages
12h 2m
English
The watershed() function from the skimage.morphology module was used to find the watershed basins in the input image, where the flooding started from the given markers. This function accepts the image and the markers (optional) as input arguments. The watershed() function accepts an ndarray marker with locations of the basins marked (the pixel values are used to assign the pixels in the label matrix) as the second argument (0 means not a marker).
The distance_transform_edt() function from scipy.ndimage.morphology was used to compute the exact Euclidean transform given by the following equation:

Here, b is the nearest background ...
Read now
Unlock full access