get_blend_structures#
- scarlet2.detect.get_blend_structures(detect, scales=None, min_separation=0, min_area=9, thresh=0)[source]#
Build
SingleScaleStructureobjects for the third wavelet scale.Each structure at the largest scale is linked to all overlapping footprints at finer scales, creating a hierarchy that connects fine-scale peaks to coarser detections.
- Parameters:
detect (
ndarray,shape (scales+1,height,width)) – Masked starlet coefficients (e.g. fromget_detect_wavelets()).scales (
listofint, optional) – Indices intodetectspecifying which scales to use. IfNone(default) all scales are used.min_separation (
float, optional) – Minimum pixel separation between peaks within a footprint.min_area (
int, optional) – Minimum number of pixels a footprint must contain to be kept.thresh (
float, optional) – Detection threshold; pixels must strictly exceed this value.
- Returns:
structures – Structures at largest scale with peaks from smaller scales attached.
- Return type:
listofSingleScaleStructure