def METHOD_NAME(feature: float, background: float) -> float:
    """The Weber contrast. Used for patterns with a small feature within a large background. Ranges from 0 to infinity.
    For backwards compatibility with previous versions, the absolute difference is used, making the range 0 to infinity vs -1 to infinity.
    .. seealso::
        https://en.wikipedia.org/wiki/Contrast_(vision)#Weber_contrast
    .. danger::
        The default definition does not use the absolute value. We only use it here for backwards compatibility.
    """
    return abs(feature - background) / background