You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ Computing how similar are 2 photos
6
6
var reader = new ImageReader();
7
7
var strategy = new StrictMatcherStrategy();
8
8
var runner = new ImageMatcherRunner(reader, strategy);
9
-
var result = runner.RunMatcher("TestData/TestImage.png", "TestData/TestImage.png");
9
+
var result = runner.RunMatcher("TestData/TestImage.png", "TestData/TestImage.png", true, 320);
10
10
```
11
+
First 2 arguments are files to compare. Third argument tells to resize image before diff compare + forth param with target width after resize.
12
+
11
13
Result is number from 0 to 100. 0 means photots are exacly the same (based on strategy used). 100 is black image vs. white image - 100% dismatch. So far there is only one strategy - but so far it was sufficient to get reasonable results.
0 commit comments