@@ -38,25 +38,25 @@ def test_image_compare_basic():
38
38
"""Test comparison of an image and the same image with minor differences."""
39
39
# This expects the images to compare equal under normal tolerance, and have
40
40
# a small RMS.
41
- im1 = 'cosine_peak-nn-img .png'
42
- im2 = 'cosine_peak-nn-img -minorchange.png'
41
+ im1 = 'basn3p02 .png'
42
+ im2 = 'basn3p02 -minorchange.png'
43
43
image_comparison_expect_rms (im1 , im2 , tol = 10 , expect_rms = None )
44
44
45
45
# Now test with no tolerance.
46
- image_comparison_expect_rms (im1 , im2 , tol = 0 , expect_rms = 2.99949 )
46
+ image_comparison_expect_rms (im1 , im2 , tol = 0 , expect_rms = 6.50646 )
47
47
48
48
def test_image_compare_1px_offset ():
49
49
"""Test comparison with an image that is shifted by 1px in the X axis."""
50
- im1 = 'cosine_peak-nn-img .png'
51
- im2 = 'cosine_peak-nn-img -1px-offset.png'
52
- image_comparison_expect_rms (im1 , im2 , tol = 0 , expect_rms = 22.04263 )
50
+ im1 = 'basn3p02 .png'
51
+ im2 = 'basn3p02 -1px-offset.png'
52
+ image_comparison_expect_rms (im1 , im2 , tol = 0 , expect_rms = 90.15611 )
53
53
54
- def test_image_compare_title_1px_offset ():
55
- """Test comparison with an image with the title shifted by 1px in the X
56
- axis."""
57
- im1 = 'cosine_peak-nn-img .png'
58
- im2 = 'cosine_peak-nn-img-title -1px-offset.png'
59
- image_comparison_expect_rms (im1 , im2 , tol = 0 , expect_rms = 13.77513 )
54
+ def test_image_compare_half_1px_offset ():
55
+ """Test comparison with an image with half the pixels shifted by 1px in the
56
+ X axis."""
57
+ im1 = 'basn3p02 .png'
58
+ im2 = 'basn3p02-half -1px-offset.png'
59
+ image_comparison_expect_rms (im1 , im2 , tol = 0 , expect_rms = 63.75 )
60
60
61
61
def test_image_compare_scrambled ():
62
62
"""Test comparison of an image and the same image scrambled."""
@@ -66,11 +66,11 @@ def test_image_compare_scrambled():
66
66
# colour component of each pixel randomly placed somewhere in the image. It
67
67
# contains exactly the same number of pixels of each colour value of R, G
68
68
# and B, but in a totally different position.
69
- im1 = 'cosine_peak-nn-img .png'
70
- im2 = 'cosine_peak-nn-img -scrambled.png'
69
+ im1 = 'basn3p02 .png'
70
+ im2 = 'basn3p02 -scrambled.png'
71
71
# Test with no tolerance to make sure that we pick up even a very small RMS
72
72
# error.
73
- image_comparison_expect_rms (im1 , im2 , tol = 0 , expect_rms = 153.19994 )
73
+ image_comparison_expect_rms (im1 , im2 , tol = 0 , expect_rms = 172.63582 )
74
74
75
75
def test_image_compare_shade_difference ():
76
76
"""Test comparison of an image and a slightly brighter image."""
0 commit comments