Configuration for hysteresis thresholding used to reduce mask flickering between frames.

interface HysteresisConfig {
    high: number;
    low: number;
}

Properties

Properties

high: number

The upper alpha threshold. Pixels with alpha at or above this value are snapped to 255 (fully foreground).

low: number

The lower alpha threshold. Pixels with alpha at or below this value are snapped to 0 (fully background).