Skip to content

Commit 9d4ca70

Browse files
Update intensity-based_segmentation.py
1 parent fd914c8 commit 9d4ca70

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

computer_vision/intensity-based_segmentation.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
# Source:"https://www.ijcse.com/docs/IJCSE11-02-03-117.pdf"
12
# Importing necessary libraries
23
import numpy as np
34
from PIL import Image
45
import matplotlib.pyplot as plt
56
from typing import List
67

7-
88
def segment_image(image: np.ndarray, thresholds: List[int]) -> np.ndarray:
99
"""
1010
Performs image segmentation based on intensity thresholds.
@@ -29,7 +29,6 @@ def segment_image(image: np.ndarray, thresholds: List[int]) -> np.ndarray:
2929

3030
return segmented
3131

32-
3332
if __name__ == "__main__":
3433
# Path to the image file
3534
image_path = "path_to_image" # Replace with the path to your local image file

0 commit comments

Comments
 (0)