DominantColors

WMA link


DominantColors[image]

gives a list of colors which are dominant in the given image.

DominantColors[image, n]

returns at most n colors.

DominantColors[image, n, prop]

returns the given property prop, which may be:

  • “Color”: return RGB colors,
  • “LABColor”: return LAB colors,
  • “Count”: return the number of pixels a dominant color covers,
  • “Coverage”: return the fraction of the image a dominant color covers, or
  • “CoverageImage”: return a black and white image indicating with white the parts that are covered by a dominant color.

The option “ColorCoverage” specifies the minimum amount of coverage needed to include a dominant color in the result.

The option “MinColorDistance” specifies the distance (in LAB color space) up to which colors are merged and thus regarded as belonging to the same dominant color.

Darker
Lighter