ddd_pylib.labeling.

SeededWatershedOperator#

class ddd_pylib.labeling.SeededWatershedOperator[source]#

Bases: ImageOperator

Apply seeded watershed on given image, it uses seeds, that can be calculated by FindExtrema if not given in the seeds attribute. The dt_image is for the FindExtrema and is a distance transformed image, that is calculated with DistanceTransform if not given.

Parameters:
  • seeds – the seeds for the seeded watershed

  • dt_image – the distance transform image for the find extrema

  • min_value – the minimum value of the extrema

Methods

getPrefix()[source]#

Prefix added to the input image name to generate the output image name.

getSeeds()[source]#

Get the seeds parameter

Returns:

seeds for the seeded watershed

Return type:

seeds

setMorphological(morphological)[source]#

Set the morphological parameter

Parameters:

morphological (bool) – whether to use morphological watershed or not

setSeeds(seeds)[source]#

Set the seeds parameter

Parameters:

seeds (DataFrame) – seeds for the seeded watershed