Page 1 of 1

Problem with image quantization and Magick++ API

Posted: 2008-02-26T02:18:16-07:00
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

Re: Problem with image quantization and Magick++ API

Posted: 2008-02-26T07:42:10-07:00
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.