browser-image
    Preparing search index...

    Interface AutoStretchOptions

    Automatic stretch (dynamic range adjustment) parameters.

    interface AutoStretchOptions {
        method?: StretchMethod;
        lowPercent?: number;
        highPercent?: number;
        stdDevs?: number;
        linked?: boolean;
    }
    Index
    method?: StretchMethod

    Default percentClip.

    lowPercent?: number

    percentClip: percent of pixels clipped to black, 0-50. Default 0.5.

    highPercent?: number

    percentClip: percent of pixels clipped to white, 0-50. Default 0.5.

    stdDevs?: number

    standardDeviation: half-width of the range in standard deviations, 0.1-10. Default 2.

    linked?: boolean

    false (default) stretches R, G and B independently, which also removes color casts. true uses one range from all three, keeping the color balance.