I need to count the number of pixels that fall into a color range
Hi, I am working on a project where i need to be able to count the number of pixels of each color in a specific given photo. I am currently using color segmentation pyrMeanShiftFiltering() to separate the colors like this; given this image: I put it through the color segmentation 20 times like this: after the processing, the image looks like this now:
The problem i am having is that the processed image is blurry and the shades are still not uniform. I then painstakingly set thresholds for RGB of each of the 8 possible land types. Split the color image into RGB, then looped through each image and counted the number of pixels for each color. The results were very imprecise.
Does anyone have a suggestion for another method of finding the area of each region here?
Inside inner circle or outside?
I am only concerned with whats on the inside of the large yellow circle. But i have another function that takes care of this.