mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
added explicit test for autocontrast implementation - pixel value check
This commit is contained in:
parent
4841bbe2a5
commit
01aeaa4cad
|
@ -335,6 +335,7 @@ def test_autocontrast_mask_toy_input():
|
|||
assert ImageStat.Stat(result, mask=rect_mask).median == [127]
|
||||
assert ImageStat.Stat(result_nomask).median == [128]
|
||||
|
||||
|
||||
def test_auto_contrast_mask_real_input():
|
||||
# Test the autocontrast with a rectangular mask
|
||||
with Image.open("Tests/images/iptc.jpg") as img:
|
||||
|
|
Loading…
Reference in New Issue
Block a user