开发者

Compare two images in Monkeyrunner under windows

I am trying to compare two images that are taken from monkeyrunner. I found that there is sameAs in monkeyrunner but it seems to not work. There are two other ways, one is install package ImageMagick, but I don't know how to install and use it under windows, the useful information just could be used in Linux system. Another way is using ImageChop of PIL library of Python. I just want to check the开发者_开发百科 images are the same or not. Is there another way to check how many percentage that the images are different?


I would use PhotoShop. Put 2 images in 2 layers, make "Difference" blending, and you may see difference in pixels visually, or when you choose Histogram from menu. Histogram values shown as zeros mean identical images.

PShop layers:

Compare two images in Monkeyrunner under windows

Histogram:

Compare two images in Monkeyrunner under windows

Visual difference (may be harder to spot)

Compare two images in Monkeyrunner under windows

This test is from image loaded in RGB 888 pixel format vs RGB 565 pixel format, so there's slight difference in result.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜