Published on Maven Central Java Library that compares 2 images with the same sizes and shows the differences visually by drawing rectangles. Some parts of the image can be excluded from the comparison. Can be used for automation QA tests.
When you set some wanted number of rectangles with imageComparison.setMaximalRectangleCount(10); (other then -1) and the comparing found fewer rectangles than this number, you got java.lang.IllegalArgumentException: -3 at
ImageComparison.java:359 because in
When you set some wanted number of rectangles with
imageComparison.setMaximalRectangleCount(10);
(other then -1) and the comparing found fewer rectangles than this number, you got java.lang.IllegalArgumentException: -3 at ImageComparison.java:359 because inrectangles.size()-maximalRectangleCount will be negative number.