The program in Java that compares any 2 images and shows the differences visually by drawing rectangles.
- Implementation is using only standard core language and platform features, no 3rd party libraries and plagiarized code is permitted.
- Pixels (with the same coordinates in two images) can be visually similar, but have different values of RGB. 2 pixels are considered to be "different" if they differ more than 10% from each other.
- The output of the comparison is a copy of one of the images The differences are outlined with red rectangles as shown below.
- No third party libraries or borrowed code are in usage.
To run project write:
$ git clone https://github.com/romankh3/image-comparison
$ cd image-comparison
$ ./gradlew run
Or run executable file:
$ ./run.sh
You will get the result of comparing two images. The images, which are using:
Do you see the difference?
Also you can get them from:
${projectDir}/src/main/resources/image1.png
${projectDir}/src/main/resources/image2.png
${projectDir}/build/result.png
This project is unlicense - see the LICENSE file for details