scarlet2.detect#
Detection methods
Higher-level helpers (get_wavelets, QuadTreeRegion, get_peaks, …)
are adapted from scarlet1’s detect.py.
Uses NumPy rather than JAX because detection involves dynamic data structures (variable-length peak lists, irregularly shaped footprints) that are not compatible with JAX’s JIT. Both NumPy and JAX arrays are accepted as inputs.
Classes
|
A detected footprint (connected region above threshold) in an image. |
|
A source detected in the starlet hierarchy. |
|
A peak (local maximum) in a |
|
A QuadTree that stores bounding boxes (rather than points). |
|
A connected set of pixels with common peaks at a single wavelet scale. |
Functions
|
Check whether two |
|
Check whether two footprint masks overlap. |
|
Compute intersection over union (IoU) between two source footprints. |
|
Detect footprints and their peaks in an image. |
|
Build |
|
Build a |
|
Get starlet coefficients of a detection image for source finding. |
|
Compute significant starlet coefficients for a multi-band image cube. |
|
Decompose an observed image into a list of |
|
Detect footprints at multiple starlet scales from an observation. |
|
Split a multi-peak |