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?