Algorithm of peak_finder_v3
- makes a map of local maximums of requested rank for data ndarray using mask,
- for each peak candidate defines the number of pixels, total intensity in the region defined by rank radius evaluates background level, rms of noise, and S/N using parameters
r0=5.0, dr=0.05
- apply peak selection parameters, for example
alg.set_peak_selection_pars(npix_min=5, npix_max=500, amax_thr=0, atot_thr=1000, son_min=6)
Demonstration for local maximum map
Test for 100x100 image with random normal distribution of intensities
Maps of local maximums found for rank from 1 to 5
pixel color coding:
- blue=0 - not a local maximum
- green=1 - local maximum in row
- yellow=1+2 - local maximum in row and column
- red=1+2+4 - local maximum in rectangular region of radius=rank.
Table for rank, associated 2-d region size, and fraction of pixels recognized as local maximums.
rank | 2-d region | fraction | time, ms |
---|---|---|---|
1 | 3x3 | 0.1062 | 5.4 |
2 | 5x5 | 0.0372 | 5.2 |
3 | 7x7 | 0.0179 | 5.1 |
4 | 9x9 | 0.0104 | 5.2 |
5 | 11x11 | 0.0066 | 5.2 |
Overview
Content Tools