mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Update Tests/test_imageops.py
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
fa493809a6
commit
faf913d0f8
|
@ -321,8 +321,10 @@ def test_autocontrast_mask_toy_input():
|
|||
|
||||
rect_mask = Image.new("L", img.size, 0)
|
||||
draw = ImageDraw.Draw(rect_mask)
|
||||
x0, y0 = img.size[0] // 4, img.size[1] // 4
|
||||
x1, y1 = 3 * img.size[0] // 4, 3 * img.size[1] // 4
|
||||
x0 = img.size[0] // 4
|
||||
y0 = img.size[1] // 4
|
||||
x1 = 3 * img.size[0] // 4
|
||||
y1 = 3 * img.size[1] // 4
|
||||
draw.rectangle((x0, y0, x1, y1), fill=255)
|
||||
|
||||
assert ImageOps.autocontrast(img, mask=rect_mask) != ImageOps.autocontrast(img)
|
||||
|
|
Loading…
Reference in New Issue
Block a user