browser-image
    Preparing search index...

    Interface SelectedBands<T>

    A band-interleaved raster whose data keeps the array type of the input.

    interface SelectedBands<T extends ArrayLike<number>> {
        data: T;
        bands: number;
        width: number;
        height: number;
        select?: readonly [number] | readonly [number, number, number];
        alpha?: boolean;
        noData?: number | null;
    }

    Type Parameters

    • T extends ArrayLike<number>

    Hierarchy (View Summary)

    Index
    data: T

    width * height * bands values, of any numeric type.

    bands: number

    Values per pixel, alpha included. Default 1.

    width: number

    Width in pixels.

    height: number

    Height in pixels.

    select?: readonly [number] | readonly [number, number, number]

    Which bands make the picture: one index for a gray image, three for R, G, B (0-based). Default: band 0 when there is one color band, else bands 0, 1, 2.

    alpha?: boolean

    True when the last band is alpha: 0 is transparent, any other value opaque. Default false.

    noData?: number | null

    Value that marks pixels with no data; they become transparent. NaN always does.