Skip to content

Commit 5d3d96f

Browse files
authored
Apply batched suggestions from code review
Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent a5c7d87 commit 5d3d96f

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎computer_vision/mean_threshold.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"""
77

88

9-
def mean_threshold(image: Image) -> Image.Image:
9+
def mean_threshold(image: Image.Image) -> Image.Image:
1010
"""
1111
image: is a grayscale PIL image object
1212
"""

‎computer_vision/otsu_threshold.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88

99

10-
def otsu_threshold(image: Image) -> Image.Image:
10+
def otsu_threshold(image: Image.Image) -> Image.Image:
1111
"""
1212
Applies Otsu's thresholding method to a grayscale image.
1313

‎digital_image_processing/change_brightness.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from PIL import Image
22

33

4-
def change_brightness(img: Image, level: float) -> Image.Image:
4+
def change_brightness(img: Image.Image, level: float) -> Image.Image:
55
"""
66
Change the brightness of a PIL Image to a given level.
77

‎digital_image_processing/change_contrast.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from PIL import Image
1212

1313

14-
def change_contrast(img: Image, level: int) -> Image.Image:
14+
def change_contrast(img: Image.Image, level: int) -> Image.Image:
1515
"""
1616
Function to change contrast
1717
"""

0 commit comments

Comments
 (0)