trackpy.local_maxima

trackpy.local_maxima(image, radius, percentile=64, margin=None)

Find local maxima whose brightness is above a given percentile.

Parameters:

radius : integer definition of “local” in “local maxima”

percentile : chooses minimum grayscale value for a local maximum

margin : zone of exclusion at edges of image. Defaults to radius.

A smarter value is set by locate().