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
Thank for your nice utility! Can you please explain what threshold means ? Is it like 10% of difference ignored when it is 0.1, and 100% when it is set to 1 ?
I checked the source and it looks like threshold is the amount that one pixel can be different from another pixel. If it's over the threshold, it's a different pixel and added to the number of different pixels.
If you want to stay within a certain ratio, take the number of different pixels and compare it against the total pixel area, kind of like this:
How different two colors must be for a pixel to count as mismatched, from 0 to 1. It's a per-pixel perceptual color difference, where 1 is the difference between black and white, not a share of the image; to allow some percentage of the image to differ, compare the returned count against width * height instead. Smaller values make the comparison more sensitive. 0.1 by default.
Hi!
Thank for your nice utility! Can you please explain what threshold means ? Is it like 10% of difference ignored when it is 0.1, and 100% when it is set to 1 ?