Pixel Data JS - v0.28.0
    Preparing search index...

    Function getIndexedImageColorCounts

    • Calculates the frequency of each palette index based on the image data. The index of the returned array maps directly to the index of the palette.

      Parameters

      • indexedImage: IndexedImage

        The source image containing data and palette definitions.

      Returns Uint32Array

      A typed array where each entry represents the total count of that palette index.