Skip to content

Hank-Tsou/Image-Segmentation-K-Mean-and-Mean-Shift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Image-Segmentation-K-Mean-and-Mean-Shift

This file include:

  • (1) Readme.md
  • (2) panda.jpg
  • (3) 3_a.py (k-mean)
  • (4) 3_b.py (mean-shift)

K-mean

(A) How to run the code [3_a.py ( K-mean )]

(a) Using the command prompt and direct to the file position. (my example)

 >> [C:\Users\hank\Desktop\Yueh_Lin_Tsou_lab2\3\a]

(b) input >> "python 3_a.py" to run the code.

 >> [C:\Users\hank\Desktop\Yueh_Lin_Tsou_lab2\3\a>python 3_a.py]

(c) The program will ask to input the number of cluster for K-means

 >> [cluster number for K-means: 3]

(d) The program will show the result image

3_a

Mean shift

(B) How to run the code [3_b.py ( Mean shift )]

(a) Using the command prompt and direct to the file position. (my example)

 >> [C:\Users\hank\Desktop\Yueh_Lin_Tsou_lab2\3\b]

(b) input >> "python 3_b.py" to run the code.

 >> [C:\Users\hank\Desktop\Yueh_Lin_Tsou_lab2\3\b>python 3_b.py]

(c) The program will show the result image

3_b

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages