get_detect_wavelets#
- scarlet2.detect.get_detect_wavelets(image, variance, max_scale=3, K=3, image_type='ground')[source]#
Get starlet coefficients of a detection image for source finding.
The detection image is inverse varianced weighted sum of images across all bands.
- Parameters:
image (
array-like,shape (bands,height,width)) – Image to run multi-scale detection on.variance (
array-like,shape (bands,height,width)) – Variance for every pixel in image.max_scale (
int) – Number of wavelet scales.K (
float) – The multiple of the coefficient scatter to calculate significance. Coefficients w with |w| > K*sigma_j, where sigma_j is the standard deviation at the jth scale, are considered significant.image_type (
str) – The type of image that is being used. This should be"ground"for ground based images with wide PSFs or"space"for images from space-based telescopes with a narrow PSF.
- Returns:
coeffs (
ndarray,shape (max_scale+1,height,width)) – Masked starlet coefficients of the summed detection image.sigma_j (
ndarray,shape (max_scale+1,)) – Per-scale noise estimate used for thresholding.
See also