def METHOD_NAME(fp, image):
    """Return the flux contained within a footprint."""
    spans = fp.getSpans()
    total = 0
    for span in spans:
        y = span.getY()
        x0, x1 = span.getX0(), span.getX1() + 1
        total += sum(image.array[y][x0:x1])
    return total