Open ynma-hanvo opened 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
thanks for reply with some extra infomation. but the opencv version evaluate ssim without blocks,
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;