Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fd914c8

Browse files
committedDec 30, 2024·
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 57ab4c2 commit fd914c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎computer_vision/intensity-based_segmentation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import matplotlib.pyplot as plt
55
from typing import List
66

7+
78
def segment_image(image: np.ndarray, thresholds: List[int]) -> np.ndarray:
89
"""
910
Performs image segmentation based on intensity thresholds.
@@ -28,6 +29,7 @@ def segment_image(image: np.ndarray, thresholds: List[int]) -> np.ndarray:
2829

2930
return segmented
3031

32+
3133
if __name__ == "__main__":
3234
# Path to the image file
3335
image_path = "path_to_image" # Replace with the path to your local image file

0 commit comments

Comments
 (0)
Please sign in to comment.