Reconstruct and threshold starlet scales to produce a region mask
Source:R/threshold_starlet_regions.R
threshold_starlet_regions.RdReconstruct and threshold starlet scales to produce a region mask
Arguments
- dec
sagui_starletobject (or a matrix; if matrix, J inferred fromkeep_scales)- keep_scales
integer vector (e.g., 3:6)
- include_coarse
logical
- denoise_k
NULL or numeric (pre-recon per-scale)
- mode
"soft" or "hard" (per-scale)
- threshold
"mad" for k·MAD, or "abs" for absolute tau
- k
numeric; multiplier for MAD (unused; kept for compat)
- tau
numeric; absolute threshold when threshold == "abs"
- positive_only
logical; TRUE uses rec>thr; FALSE uses |rec|>thr
- per_scale_positive
logical; clamp each reconstructed starlet scale to positive values before thresholding.
- k_hi
numeric; high MAD threshold used to define seed pixels.
- k_lo
numeric; low MAD threshold used to define candidate pixels.
- area_min
integer; minimum connected-component area to keep.
- keep_negatives
logical; retain negative reconstruction values.
- ring_nbins
integer; number of radial bins for background MAD.