footprint_intersect

footprint_intersect#

scarlet2.detect.footprint_intersect(footprint1, box1, footprint2, box2)[source]#

Check whether two footprint masks overlap.

Parameters:
  • footprint1 (ndarray of bool) – The boolean masks for the two footprints, each sized to its own bounding box.

  • footprint2 (ndarray of bool) – The boolean masks for the two footprints, each sized to its own bounding box.

  • box1 (Box) – The corresponding bounding boxes.

  • box2 (Box) – The corresponding bounding boxes.

Returns:

overlap

Return type:

bool