New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix image comparison #1291
Fix image comparison #1291
Commits on Feb 27, 2013
-
Added new test suite, test_compare_images.
This tests the image comparison function itself. Currently, all three cases fail, due to a buggy comparison algorithm. In particular, test_image_compare_scrambled shows the algorithm massively under-computing the error, and test_image_compare_shade_difference shows the algorithm massively over-computing the error.
Configuration menu - View commit details
-
Copy full SHA for 3dcc2cb - Browse repository at this point
Copy the full SHA 3dcc2cbView commit details -
Remove the alpha channel from the expected and actual images.
(This regressed when the PIL code was migrated to numpy.)
Configuration menu - View commit details
-
Copy full SHA for 2f139f2 - Browse repository at this point
Copy the full SHA 2f139f2View commit details -
testing/compare: Fix image comparison RMS calculation.
The previous implementation did not compute the RMS error. It computed the RMS in the difference of the number of colour components of each value. While this computes 0 for equal images, it is incorrect in general. In particular, it does not detect differences in images with the same pixels in different places. It also cannot distinguish small changes in the colour of a pixel from large ones.
Configuration menu - View commit details
-
Copy full SHA for 82ecfcf - Browse repository at this point
Copy the full SHA 82ecfcfView commit details -
Do not divide RMS by 10000 when testing against tolerance.
This was arbitrary and made no sense. Increased all tolerances by a factor of 10000. Note that some are ridiculously large (e.g., 200 out of 255).
Configuration menu - View commit details
-
Copy full SHA for 125d235 - Browse repository at this point
Copy the full SHA 125d235View commit details -
Configuration menu - View commit details
-
Copy full SHA for a344de6 - Browse repository at this point
Copy the full SHA a344de6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a9a71b - Browse repository at this point
Copy the full SHA 7a9a71bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e12012 - Browse repository at this point
Copy the full SHA 4e12012View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62a548d - Browse repository at this point
Copy the full SHA 62a548dView commit details -
test_compare_images: Added two new test cases, testing a whole-image …
…and sub-image 1-pixel offset.
Configuration menu - View commit details
-
Copy full SHA for 6edf6bc - Browse repository at this point
Copy the full SHA 6edf6bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9701a43 - Browse repository at this point
Copy the full SHA 9701a43View commit details -
Configuration menu - View commit details
-
Copy full SHA for c855310 - Browse repository at this point
Copy the full SHA c855310View commit details -
testing/compare: Remove "retry ignoring pixels with differences of on…
…ly 1." This was introduced in 1283feb, presumably to hack around the fact that 1-pixel differences can make a very large error value. This is not necessary any more, since the root cause has been fixed."
Configuration menu - View commit details
-
Copy full SHA for 23b03aa - Browse repository at this point
Copy the full SHA 23b03aaView commit details -
test_compare_images: Fix errors on Python 2.6 because assert_is_none …
…is not available.
Configuration menu - View commit details
-
Copy full SHA for 80f89a1 - Browse repository at this point
Copy the full SHA 80f89a1View commit details -
test_compare_images: Replace cosine_peak-nn test images with new base…
…line images derived from basn3p02 in pngsuite tests. These are much smaller images than the cosine tests.
Configuration menu - View commit details
-
Copy full SHA for 91c969a - Browse repository at this point
Copy the full SHA 91c969aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 64ae6c8 - Browse repository at this point
Copy the full SHA 64ae6c8View commit details -
tests: Removed existing custom tolerance values, since they are irrel…
…evant under the new algorithm. Added a few new tolerance values, for output I am seeing that is valid but slightly different to the baseline image.
Configuration menu - View commit details
-
Copy full SHA for 8d44f75 - Browse repository at this point
Copy the full SHA 8d44f75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38b6157 - Browse repository at this point
Copy the full SHA 38b6157View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d3e774 - Browse repository at this point
Copy the full SHA 9d3e774View commit details -
Configuration menu - View commit details
-
Copy full SHA for afc50bf - Browse repository at this point
Copy the full SHA afc50bfView commit details -
Reduce the tolerance for test_mathtext from 50 down to 32.
This is possible due to anti-aliasing.
Configuration menu - View commit details
-
Copy full SHA for 9410fcf - Browse repository at this point
Copy the full SHA 9410fcfView commit details