watershed: Watershed segmentation of spatstat im object.

View source: R/segmentation.R

watershedR Documentation

Watershed segmentation of spatstat im object.

Description

Basically a wrapper around the imager package watershed function to perform marker assisted watershed segmentation of spatstat im objects.

Usage

watershed(mask, seeds, fill_lines = TRUE)

Arguments

mask

image object (grayscale or binary)

seeds

planar point pattern containing seed/marker coordinates

fill_lines

Logical value indicating whether watershed lines should be filled or left as background.

Value

labelled image.


keithschulze/supr documentation built on Nov. 26, 2022, 7:09 a.m.