Search found 3 matches

by greener
2015-10-14T12:11:31-07:00
Forum: Magick++
Topic: Image::resize gives different results on same image
Replies: 6
Views: 15450

Re: Image::resize gives different results on same image

Yes, I'm using PNGs with 8 bits per channel (either 8 bpp grayscale or 32 bpp RGB), so the conversion from 16 bits per channel in memory would account for these differences. The normalized max error of 0.001953 * 255 ~= 0.5 implies the differences are at most a half of one gray level, and it doesn't...
by greener
2015-10-14T10:08:31-07:00
Forum: Magick++
Topic: Image::resize gives different results on same image
Replies: 6
Views: 15450

Re: Image::resize gives different results on same image

Thanks for the quick replies! Yes, it's all being done on the same computer, a BeagleBone Black clone running Debian. The Magick++ version is 6.7.7 Q16. I've now found that these differences are introduced when the image is written out to a file. The following code: const char* original = "test...
by greener
2015-10-13T16:07:07-07:00
Forum: Magick++
Topic: Image::resize gives different results on same image
Replies: 6
Views: 15450

Image::resize gives different results on same image

When I load an Image from a PNG, and then call: image.resize(Geometry(newWidth, newHeight)); (where the new width and height are either about 10% larger or 10% smaller than the original), and then save the resulting image as another PNG, I find that I get slightly different results each time. That's...