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?".
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
image.read( blob );
image.quantizeColors( 10 );
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 ?
- Site Admin
- Posts: 11064
- Joined: 2003-05-31T11:32:55-07:00
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.