browser-image
    Preparing search index...

    Interface PanSharpenResult<T>

    A pan-sharpened raster: the multispectral bands at the panchromatic resolution.

    interface PanSharpenResult<T extends ArrayLike<number> = ArrayLike<number>> {
        data: T;
        width: number;
        height: number;
        bands: number;
        noData: number | null;
        weights: number[];
        gains: number[];
        model: PanSharpenModel;
    }

    Type Parameters

    • T extends ArrayLike<number> = ArrayLike<number>
    Index
    data: T

    width * height * bands values, of the multispectral raster's array type (Float64Array when it is not a typed array).

    width: number

    Width in pixels.

    height: number

    Height in pixels.

    bands: number

    Values per pixel: every multispectral band, alpha included.

    noData: number | null

    The no-data value of the result: the multispectral one, else NaN for floats or 0 for integers.

    weights: number[]

    The intensity weights used, in the order of the sharpened bands (summing to 1).

    gains: number[]

    Detail gains of the sharpened bands (1 for ihs, varying for gram-schmidt, 0 for brovey).

    The fitted weights and gains, to sharpen other pieces of the same image with (see options.model).