Skip to content

Commit 91f2373

Browse files
authored
[0, 1, 1]], dtype=int32)
1 parent aabf3ed commit 91f2373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

computer_vision/intensity_based_segmentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def segment_image(image: np.ndarray, thresholds: list[int]) -> np.ndarray:
2222
>>> segment_image(img, [50, 100, 150])
2323
array([[1, 2, 3],
2424
[0, 1, 2],
25-
[0, 1, 1]])
25+
[0, 1, 1]], dtype=int32)
2626
"""
2727
# Initialize segmented array with zeros
2828
segmented = np.zeros_like(image, dtype=np.int32)

0 commit comments

Comments
 (0)