File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 12
12
from numpy import array , uint8
13
13
from PIL import Image
14
14
15
- img = imread (r"digital_image_processing/image_data/lena .jpg" )
15
+ img = imread (r"digital_image_processing/image_data/lena_small .jpg" )
16
16
gray = cvtColor (img , COLOR_BGR2GRAY )
17
17
18
18
# Test: change_contrast()
19
19
def test_change_contrast ():
20
- with Image .open ("digital_image_processing/image_data/lena .jpg" ) as img :
20
+ with Image .open ("digital_image_processing/image_data/lena_small .jpg" ) as img :
21
21
# Work around assertion for response
22
22
assert str (cc .change_contrast (img , 110 )).startswith (
23
- "<PIL.Image.Image image mode=RGB size=512x512 at"
23
+ "<PIL.Image.Image image mode=RGB size=100x100 at"
24
24
)
25
25
26
26
@@ -33,7 +33,7 @@ def test_gen_gaussian_kernel():
33
33
34
34
# canny.py
35
35
def test_canny ():
36
- canny_img = imread ("digital_image_processing/image_data/lena .jpg" , 0 )
36
+ canny_img = imread ("digital_image_processing/image_data/lena_small .jpg" , 0 )
37
37
# assert ambiguos array for all == True
38
38
assert canny_img .all ()
39
39
canny_array = canny .canny (canny_img )
You can’t perform that action at this time.
0 commit comments