browser-image
    Preparing search index...

    Interface Raster<T>

    A raster: any number of bands of one sample type, pixel-interleaved.

    interface Raster<T extends RasterSamples = RasterSamples> {
        width: number;
        height: number;
        bands: number;
        data: T;
        noData?: number | null;
    }

    Type Parameters

    Index
    width: number

    Width in pixels.

    height: number

    Height in pixels.

    bands: number

    Samples per pixel.

    data: T

    bands values for each pixel, row by row.

    noData?: number | null

    Value of pixels with no data. Default: none (NaN still counts as no data).