Help using MagickGetImageHistogram

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
Dilshod

Help using MagickGetImageHistogram

Post by Dilshod »

How can I use MagickGetImageHistogram to extract data similar to?

Code: Select all

    
   109833: (  0,  0,  0)       black
   1708023: (255,255,255)       white
I am a bit confused about PixelWand array structure. Does the array correspond to the number of pages in an image or number of colors in a page.

Thanks in advance.

-dt


PS. this relates to viewtopic.php?f=1&t=8366
Dilshod

Re: Help using MagickGetImageHistogram

Post by Dilshod »

Please ignore my post. I've figured it out.

PixelWand corresponds to 1 color. And to retrieve pixel count you need to use PixelGetColorCount.

thanks again for ImageMagick tool.

-dt
Post Reply