Problem with image quantization and Magick++ API
Posted: 2008-02-26T02:18:16-07:00
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 :
Displaying other attributes works fine. Any ideas for quantization ?
Thanks
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;
Thanks