Skip to content

lxl-max/image-segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image-segmentation

Project name

ROI Selection and Classical Image Segmentation with Comparative Analysis

Mu Li

What the project does

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.

How to install requirements

Install with pip install numpy matplotlib opencv-contrib-python

How to run the code

  1. Download sample from data/
  2. Input the path of image (manually)
  3. Run
  4. Choose ROIs, enter "space" to confirm, enter "Esc" to exit
  5. Get results

Example screenshoots or figures

Using K-Means Algorithum as an example:

image image image image image image

About

Four classical segmentaion algorithums

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages