Jeden z odkazů od strejdy:http://blogs.mathworks.com/steve/2008/01/31/counti ng-occurrences-of-image-colors/