Im making an installation, we make pixelart animation with the same grid every frame and a few colors.
Now i need to find a way to count pixel per frame and per color
I think to use sampleimage expression. I can make a layer per color with a keyer. The idea is with sampleimage make a min and max value that I can measure with all the screen on and all off. With this value teoricaly I can count dots in each frame if I know how many I have.
But I cant find a way, because I have aprox 2000 dots (all on) and the color deth of the image dont allow.
Here is a frame of the grid
Does this make sense? Is it possible? or is another way to do this?