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
{{ message }}
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.
Particularly, I am very confused why newDeltaB is subtracted by newDeltaA to compare with the maxDelta. I feel that this may result in a false positive even with very different colors since the differences may cancel each other out in unexpected ways (I cannot really explain this well, but it is rooted in math). Also, the algorithm seems to be asymmetrical, meaning that if I switched the order of the images around, so that imageA became imageB and imageB became imageA, the results would differ greatly.
As a solution to this problem, I thought of another algorithm that could possibly work. Why wouldn't this code be a better alternative?
Hello!
I am trying to learn about image comparison algorithms, and I have a question about the surrounding pixel comparison algorithm in this library.
rembrandt/lib/image-comparator.js
Lines 167 to 175 in e402cb4
Particularly, I am very confused why newDeltaB is subtracted by newDeltaA to compare with the maxDelta. I feel that this may result in a false positive even with very different colors since the differences may cancel each other out in unexpected ways (I cannot really explain this well, but it is rooted in math). Also, the algorithm seems to be asymmetrical, meaning that if I switched the order of the images around, so that imageA became imageB and imageB became imageA, the results would differ greatly.
As a solution to this problem, I thought of another algorithm that could possibly work. Why wouldn't this code be a better alternative?
The text was updated successfully, but these errors were encountered: