Skip to content

A python script to segment images using the mean shift discontinuity preserving filter and clustering.

Notifications You must be signed in to change notification settings

aviputri/mean-shift-clustering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mean-shift-clustering

Dependencies: Numpy, OpenCv A python script to segment images using the mean shift discontinuity preserving filter and clustering.

  1. Edit values for the following global variables in the top of the file :-

Mode = 1 indicates that thresholding should be done based on H Mode = 2 indicates that thresholding should be done based on Hs and Hr Mode = 2 by default Path to the input image imgPath = 'Butterfly.jpg' (example) Set appropriate values for H,Hs,Hr and Iter H = 90 Hr = 90 Hs = 90 Iter = 100

  1. Run the script mean-shift.py

About

A python script to segment images using the mean shift discontinuity preserving filter and clustering.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%