ddd_pylib.image_manip.

FindExtremaOperator#

class ddd_pylib.image_manip.FindExtremaOperator[source]#

Bases: MeasurementsOperator

Searches for the local extrema (minima or maxima) on an image. These extrema are filtered by prominence, which is a measure of how much an extremum stands out from its surroundings.

Note: The prominence is always positive.

If you are looking for local maxima, set blackBackground to True. If you are looking for local minima, set blackBackground to False.

Settable parameters:
  • blackBackground (setBlackBackground) – If True, the operator will look for local maxima.

  • prominence (setProminence) – The minimum prominence of a local extremum.

Produces:

result (getResult)

The extrema as a list of coordinates bundled in a pd.DataFrame.

Each line is a point and each column is an axis.

Methods

static defaultBlackBackground()[source]#
Return type:

bool

static defaultProminence()[source]#
Return type:

float

getPrefix()[source]#

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

Return type:

str

setBlackBackground(value)[source]#

Set the blackBackground attribute, which defines if we are looking for minima or maxima

Parameters:

value (bool)

setProminence(value)[source]#

Set the minimum prominence of a local extremum.

Parameters:

value (float | int)