Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/psf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@

Determine peak parameters via a fast, non-iterative center-of-mass approach.
Return quantities are typed to `promote_type(T, typeof(maximum(img_ap)))`.
Peak parameters are returned as a NamedTuple with fields

The threshold for the center-of-mass calculation is computed as the average
value of the border pixels (a simple background estimate) plus `rel_thresh`
times the peak pixel value. Pixels below this threshold are clamped to zero.
Larger values of `rel_thresh` isolate the core of the PSF; smaller values
include more of the wings.

Peak parameters are returned as a NamedTuple with fields
- `psf_params`: NamedTuple containing entries `x`, `y`, and `fwhm`
(a tuple of x and y FWHM).
(a tuple of x and y FWHM).
- `psf_model`: `"com"` to indicate center-of-mass
- `psf_data`: the input image cutout (`img_ap`) for reference
"""
Expand Down
Loading