Locate Gaussian-like blobs of some approximate size in an image.
Preprocess the image by performing a band pass and a threshold. Locate all peaks of brightness, characterize the neighborhoods of the peaks and take only those with given total brightness (“mass”). Finally, refine the positions of each peak.
Parameters: | image : array
diameter : odd integer or tuple of odd integers
minmass : float
maxsize : float
separation : float or tuple
noise_size : float or tuple
smoothing_size : float or tuple
threshold : float
invert : boolean
percentile : float
topn : integer
preprocess : boolean
max_iterations : integer
filter_before : boolean
filter_after : boolean
characterize : boolean
engine : {‘auto’, ‘python’, ‘numba’} |
---|---|
Returns: | DataFrame([x, y, mass, size, ecc, signal])
|
See also
Notes
Locate works with a coordinate system that has its origin at the center of pixel (0, 0). In almost all cases this will be the topleft pixel: the y-axis is pointing downwards.
This is an implementation of the Crocker-Grier centroid-finding algorithm. [R4]
References
[R4] | (1, 2) Crocker, J.C., Grier, D.G. http://dx.doi.org/10.1006/jcis.1996.0217 |