Some problems with function "colorHistogram"

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
franknapoli

Some problems with function "colorHistogram"

Post by franknapoli »

I've some problems with the function "colorHistogram". I post you the code:

...
map<Color,unsigned long> histogram;
colorHistogram( &histogram, image );
std::map<Color,unsigned long>::const_iterator p=histogram.begin();
...

My software stops when try to call the line -----colorHistogram( &histogram, image );
I don't know what is the problem because ImageMagick is correctly installed.

I'm using ImageMagick and Magick++ to work with C++ on a SO Linux Ubuntu 8.04. Please help me. Thanks
Post Reply