1. A method comprising: generating a color histogram of an image by performing one-dimensional samplings of pixels of the image in each dimension of a multi-dimensional color space; performing pattern detection on an edge map of the image; generating an orientation histogram of the image in response to a confidence level of the pattern detection failing to transgress a threshold value, the generating of the orientation histogram being performed by a processor of a machine; and determining a dominant color of the image.