Image.histogram

Computes the number of times each unique color appears in the image. You may want to quantize the image before using this property.

class Image
MagickSizeType[Color]
histogram
const
(
)

Return Value

A associative array. Each key reprecents a color in the Image. The value is the number of times the color apears in the image.

Meta