mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Make some ruff fixes (#8154)
* Make some ruff fixes * Undo manual fix * Undo manual fix * Updates from ruff=0.0.251
This commit is contained in:
@ -32,7 +32,7 @@ def gray2binary(gray: np.array) -> np.array:
|
||||
[False, True, False],
|
||||
[False, True, False]])
|
||||
"""
|
||||
return (127 < gray) & (gray <= 255)
|
||||
return (gray > 127) & (gray <= 255)
|
||||
|
||||
|
||||
def dilation(image: np.array, kernel: np.array) -> np.array:
|
||||
|
Reference in New Issue
Block a user