trackpy.grey_dilation

trackpy.grey_dilation(image, separation, percentile=64, margin=None, precise=True)

Find local maxima whose brightness is above a given percentile.

Parameters:
imagendarray

For best performance, provide an integer-type array. If the type is not of integer-type, the image will be normalized and coerced to uint8.

separationnumber or tuple of numbers

Minimum separation between maxima. See precise for more information.

percentilefloat in range of [0,100], optional

Features must have a peak brighter than pixels in this percentile. This helps eliminate spurious peaks. Default 64.

margininteger or tuple of integers, optional

Zone of exclusion at edges of image. Default is separation / 2.

preciseboolean, optional

Determines whether there will be an extra filtering step (drop_close) discarding features that are too close. Degrades performance. Because of the square kernel used, too many features are returned when precise=False. Default True.

See also

drop_close

removes features that are too close to brighter features

grey_dilation_legacy

local maxima finding routine used until trackpy v0.3