MatLab script to determine the dominant color in an image