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.
The source image containing data and palette definitions.
A typed array where each entry represents the total count of that palette index.
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.