I am using ImageMagick-6.8.6-Q16 in windows platform. I used IM to does image comparison for my application UI. Currently I've one issue with sub image search in IM.
Here the ideal app behavior to be verified is as follows;
Here the arrow indicator is the area to be verified(sub image is enclosed in red rectangle for identification). There can be an upper arrow or not depending on the application behavior.
So the sub image to be verified is :
With following image, the sub image comparison passed.
But if there is any issue with painting app, such that there is a vertical 'x pixel' shift. So with drifted UI the image which is to be searched is :
In this case also the comparison passed, which is a false pass. I expect a failure in this case. Actually it interprets the upper corner of the ellipse as 'arrow'.
command used is
Code: Select all
compare -metric rmse -subimage-search img1.jpg img2.jpg result.jpg
how can I accurately test in this scenario ?
PS: Color comparison is required as the ' arrow' can be highlighted or not. I think grayscale comparison is not suited for this case