Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.24 KB

File metadata and controls

38 lines (24 loc) · 1.24 KB

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