Problem with image quantization and Magick++ API

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
zeugman

Problem with image quantization and Magick++ API

Post by zeugman »

Hi,
I want to quantize an image read from a blob with Magick++ API but I don't manage to get the attributes like meanErrorPerPixel() or normalizedMeanError().
I use the following code :

Code: Select all

Blob blob(...);
Image image;
image.read( blob );
image.verbose(true);
image.quantizeColors( 10 );
image.quantize(true);
std::cout << "Mean Error Per Pixel :" << image.meanErrorPerPixel() << std::endl;
std::cout << "Normalized Max Error:" << image.normalizedMaxError() << std::endl;
Displaying other attributes works fine. Any ideas for quantization ?
Thanks
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem with image quantization and Magick++ API

Post by magick »

We have a patch in ImageMagick 6.3.9-1 Beta to fix the problem you reported. 6.3.9-1 Beta will be available sometime tomorrow.
Post Reply