Galen image comparison

175 views
Skip to first unread message

Dharmaraj M.R.

unread,
Jun 22, 2016, 10:09:13 AM6/22/16
to Galen Framework
Hi, I have downloaded galen-master project from git. In Rainbow4JTest.java which is test class, i commented all method expect shouldCompare_images method and imageCompareProvider method. 

1. I gave two images required to compare, for e.g.: image1 and image2 
     When I execute Rainbow4JTest.java it fails showing error as "Expected: is a value greater than <0.85>     but: <0.0> was less than <0.85>", i didn't understand why it fails.

when I debugged, it was showing percentage as 0 in ImageCompareResult. 

I tried with other images also but everytime it fails.

could you please help in this.

Requirement : I want to compare two images and say whether it passed or failed. Here we can take image1 as base data and compare image2 with image 1 and show whether it is same(passed or failed)
                        Then want to show the differences if any(mostly like highlighting particular region in image which has a change)
                       

Dharmaraj M.R.

unread,
Jun 23, 2016, 1:54:02 AM6/23/16
to Galen Framework
Adding to above issue, if give same images for comparison it fails with the same error as mentioned above.

prac...@gmail.com

unread,
Jun 28, 2016, 2:21:24 AM6/28/16
to Galen Framework
Hi Dharamraj, 

Can you tell mw how you did the comparison? I'm not versed with Java. Can you guide in how this was achieved? Thanks in advance.

Prachi

Ivan Shubin

unread,
Jun 28, 2016, 9:52:42 AM6/28/16
to Galen Framework
Are those images identical or not? Because if they are the same, then the 0 value is the correct result since there is no difference. And could you please share the code for that test?
Reply all
Reply to author
Forward
0 new messages