I would like to calculate the density of certain color in an image,
for example, the density of red color and get the center gravity where the x,y coordinate is.
How to do that? Is there certain function in processing to do that?
1