mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Tighten up psf/black and flake8 (#2024)
* Tighten up psf/black and flake8
* Fix some tests
* Fix some E741
* Fix some E741
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@@ -29,8 +29,8 @@ def canny(image, threshold_low=15, threshold_high=30, weak=128, strong=255):
|
||||
dst = np.zeros((image_row, image_col))
|
||||
|
||||
"""
|
||||
Non-maximum suppression. If the edge strength of the current pixel is the largest compared to the other pixels
|
||||
in the mask with the same direction, the value will be preserved. Otherwise, the value will be suppressed.
|
||||
Non-maximum suppression. If the edge strength of the current pixel is the largest compared to the other pixels
|
||||
in the mask with the same direction, the value will be preserved. Otherwise, the value will be suppressed.
|
||||
"""
|
||||
for row in range(1, image_row - 1):
|
||||
for col in range(1, image_col - 1):
|
||||
|
||||
Reference in New Issue
Block a user