ROI Selection and Classical Image Segmentation with Comparative Analysis
Mu Li
Implement four classical segmentation algorithums: Otsu Thresholding, K-Means Algorithum, Contour Detection, and Watershed Algorithum. Using these algorithums, user can select a Region of Interest (ROI) or multiple ROIs of a sample image by drawing a rectangle with the mouse on the image.
Install with pip install numpy matplotlib opencv-contrib-python
- Download sample from
data/ - Input the path of image (manually)
- Run
- Choose ROIs, enter "space" to confirm, enter "Esc" to exit
- Get results
Using K-Means Algorithum as an example: