Open WeisiminPeng-Simmi opened 1 year ago
Hi @WeisiminPeng-Simmi,
In python, you can just do
(a == b).min() == 255
ie. compare the images pixel by pixel to make an image of 0 and 255, then search that for the minimum. If the min is 255, the images must be equal in every pixel.
Hi, may I ask how to compare two images? Thanks! I just want to know they are the same or not.
I found an issue in libvips repo: https://github.com/libvips/libvips/issues/1201 But i couldn't find that
equal()
method in pyvips.