Quote:
Atreides said:
thank you Ich for that province count. How did you determine the number approximately?
|
I counted the white pixels, then rounded towards the next largest number.
To get the number of pixels of any color, you could do the following for example:
- install
ImageMagick
- run it like 'identify -verbose Westeros.bmp'
- look for the row titled "(255,255,255) #FFFFFF white" in the color histogram, the number in front is the pixel count
(If you're on *nix: 'identify -verbose Westeros.bmp | grep white')