footprints#
- scarlet2.plot.footprints(detect, fps)[source]#
Plot wavelet-scale detection images with overlaid footprints and peaks.
Creates one panel per wavelet scale (including the coarse residual plane), showing the masked starlet coefficient image at each scale. For scales that appear in
fps, the detected footprint masks are overlaid as a semi-transparent grey layer and each peak is marked with a whitex. The final panel corresponds to the smooth background residual and is labelledscale=N+.- Parameters:
detect (
ndarray,shape (max_scale+1,height,width)or(max_scale+2,height,width)) – Masked starlet coefficients, e.g. the first element of the tuple returned bydetect.multiscale_footprints(..., return_intermediates=True).fps (
dict mapping int → listofFootprint) – Footprints at each detected scale, as returned bymultiscale_footprints(). Only the scales that appear as keys in this dict receive footprint and peak overlays.
- Returns:
fig – Figure with
len(detect)panels, one per wavelet scale.- Return type:
matplotlib.figure.Figure