I got some more debug info:
This is due to the 1 bit alpha channel in png files.
GetMeanSquaredDistortion@compare.c might be calculated wrongly in some way. When I commented out the calculations for alpha channel as well as harcoded distortion[CompositeChannels]/=(double) GetNumberChannels(image ...
Search found 2 matches
- 2014-07-17T06:50:38-07:00
- Forum: Bugs
- Topic: PSNR is different for the same images, different formats
- Replies: 4
- Views: 5974
- 2014-07-17T03:28:14-07:00
- Forum: Bugs
- Topic: PSNR is different for the same images, different formats
- Replies: 4
- Views: 5974
PSNR is different for the same images, different formats
OS : Windows 8 Enterprise
Magick Version : 6.8.9
Bug : When calculating PSNR between two images, the PSNR differs depending on the format of the files (but the same content).
Steps to reproduce :
Download reference images: http://www.filedropper.com/refimages
UTIL_DB_compare_.exe -metric PSNR ...
Magick Version : 6.8.9
Bug : When calculating PSNR between two images, the PSNR differs depending on the format of the files (but the same content).
Steps to reproduce :
Download reference images: http://www.filedropper.com/refimages
UTIL_DB_compare_.exe -metric PSNR ...