Page 1 of 1

Help using MagickGetImageHistogram

Posted: 2007-02-04T17:38:10-07:00
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

Re: Help using MagickGetImageHistogram

Posted: 2007-02-05T19:32:32-07:00
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