get_blend_structures

get_blend_structures#

scarlet2.detect.get_blend_structures(detect, scales=None, min_separation=0, min_area=9, thresh=0)[source]#

Build SingleScaleStructure objects 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. from get_detect_wavelets()).

  • scales (list of int, optional) – Indices into detect specifying which scales to use. If None (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:

list of SingleScaleStructure