
The compare algorythme it self chunks the two images into serveral tiles, then eliminates tiles, that are almost equal to white average color and then compares the average color of all remaining tile-permutations.


To keep the calculation limited it's better to resize your image first (masks are allways fittet to the current image) Then you can compare one image to another using the compare method. You can now create a new image and subtract some mask of it in order to eliminate a background. So i tryed to tune it up a liddle bit.This is now a complete OOP implementation. Below image shows the TIOBE Programming index which measures the popularity level of.

In this calculation the background is ignored what leads to bigger difference in the avg color. PHP or Python or Ruby-on-Rails (RoR), comparison, web performance, security, salary, market. I made a very simple approach, using img-resize and comparing the average color of the resized images.įor the used size and color-tolerance I get the expected result: Because this question is quite interesting, I moved the whole thing to GitHub where you can find the current implementation:ImageCompare
