Skip to content

Commit e10cf9b

Browse files
committed
🐛 Fixed precommit errors
1 parent b461e85 commit e10cf9b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

digital_image_processing/morphological_operations/pruning_operation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @Author: @joydipb01
22
# @File: pruning_operation.py
3-
# @Time: 2025-10-03 19:45 IST
3+
# @Time: 2025-10-03 19:45
44

55
from pathlib import Path
66

@@ -129,6 +129,7 @@ def prune_skeletonized_image(
129129
) -> np.ndarray:
130130
"""
131131
Return pruned image by removing spurious branches of specified length
132+
Source: https://www.scribd.com/doc/15792184/042805-04
132133
133134
>>> arr = np.array([
134135
... [False, True, False],

digital_image_processing/morphological_operations/skeletonization_operation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @Author: @joydipb01
22
# @File: skeletonization_operation.py
3-
# @Time: 2025-10-03 13:45 IST
3+
# @Time: 2025-10-03 13:45
44

55
from itertools import pairwise
66
from pathlib import Path
@@ -148,7 +148,6 @@ def skeletonize_image(image: np.ndarray) -> np.ndarray:
148148
changing1 = changing2 = [(-1, -1)]
149149

150150
while changing1 or changing2:
151-
152151
# Step 1: Points to be removed in the first sub-iteration
153152
changing1 = []
154153
rows, cols = img.shape

0 commit comments

Comments
 (0)