Build an adaptive multi-band/spatial support mask
Source:R/adaptive_support.R
build_adaptive_support.RdBuilds a foreground support from band-wise or wavelength-slice detection evidence rather than from a single white-light image. This is useful for IFU cubes where the source is persistent over many wavelength channels but the background may vary spatially or spectrally.
Arguments
- input
A FITS-like object with
imDat, or a 3-D cube array.- bands
Wavelength slices used to build the support. May be
NULLfor all slices, a numeric vector of indices, or a character vector matching cube dimnames along the third dimension.- transform
Per-slice image transform before robust sky normalization. Options are
"none","asinh","signed_log1p","log1p","copula_uniform", and"copula_gaussian".- sky_method
Pixels used for robust sky/noise estimation.
"border"uses image borders;"all"uses all finite pixels.- border_fraction
Fraction of rows/columns used as image border when
sky_method = "border".- z_threshold
Per-slice detection threshold in robust sigma units.
- min_band_persistence
Minimum number of selected slices above
z_threshold. IfNULL, defaults to two slices when possible.- single_band_z
Optional single-slice rescue threshold. Use
Infto disable.- smooth_sigma
Optional Gaussian smoothing applied to each significance map before thresholding. Requires
EBImageorimager.