Skip to content

This project demonstrates image segmentation using KMeans and Mean Shift Clustering. It segments the image into distinct regions and highlights the segmented areas by drawing boundaries around them.

Notifications You must be signed in to change notification settings

jineshrs2398/Mean-Shift_Segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Image Segmentation using KMeans and Mean Shift Clustering

This project demonstrates image segmentation using KMeans and Mean Shift Clustering. It segments the image into distinct regions and highlights the segmented areas by drawing boundaries around them.

Features

  • KMeans Clustering: Segments the image based on pixel color values.
  • Mean Shift Clustering: Automatically determines the number of cluster for segmentation.
  • Contour Detection: Draws boundaries around segmented regions for better visualization.

Outputs

Segmented Images

Requirements

  • Python 3.x
  • Libraries:
    • 'numpy'
    • 'pandas'
    • 'opencv'
    • 'scikit-learn'
    • 'scikit-image'
    • 'matplotlib'

Install the dependancies using pip:

pip install numpy pandas opencv-python scikit-learn seaborn matplotlib scikit-image

To run the script:

python segmentation_script.py

About

This project demonstrates image segmentation using KMeans and Mean Shift Clustering. It segments the image into distinct regions and highlights the segmented areas by drawing boundaries around them.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages