ruofeidu / ImageQualityCompare

Compare the quality between two images using RMSE, SSIM, and PSNR. (part of I3D 2018 Montage4D.com)
http://www.montage4d.com
MIT License
29 stars 6 forks source link

discussion and query #1

Open ynma-hanvo opened 1 year ago

ynma-hanvo commented 1 year ago

in ssim function, i found the avg_o and avg_r is from Range(k, k + block_size) instead of Range(m, m + block_size). is this a bug?

by the way, what ssim value is best used for.
i want to detect if a image is taken from by placing the camera very close to scene, (like wall or floor), is ssim value able to judge;

ruofeidu commented 1 year ago

Hi ynma,

I haven't used this code for looooong loooong time, since Python has standard function for these now and opencv has them: https://docs.opencv.org/3.4/dd/d3d/tutorial_gpu_basics_similarity.html

Let me know if the results does not match with OpenCV then I'll debug it...

Cheers, Ruofei

ynma-hanvo commented 1 year ago

thanks for reply with some extra infomation. but the opencv version evaluate ssim without blocks,