Footprint#

class scarlet2.detect.Footprint(footprint: ndarray, peaks: list[Peak], bounds: tuple[tuple[int, int], tuple[int, int]])[source]#

Bases: object

A detected footprint (connected region above threshold) in an image.

footprint#

Boolean mask of the footprint pixels, sized to the bounding box.

Type:

ndarray of bool, shape (height, width)

peaks#

Peaks found within this footprint, sorted brightest-first.

Type:

list of Peak

bounds#

Bounding box ((y_min, y_max), (x_min, x_max)) in the full image, with exclusive end coordinates (consistent with Box).

Type:

tuple of two (min, max) pairs