Skip to content

Commit 30ef038

Browse files
Add files via upload
1 parent 313a138 commit 30ef038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

digital_image_processing/change_contrast.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def change_contrast(img: Image, level: int) -> Image:
1717
"""
1818
factor = (259 * (level + 255)) / (255 * (259 - level))
1919

20-
def contrast(c: int) -> int:
20+
def contrast(c: int) -> float:
2121
"""
2222
Fundamental Transformation/Operation that'll be performed on
2323
every bit.

0 commit comments

Comments
 (0)