how to use kmeans function to transform grayscale image to binary

1 回表示 (過去 30 日間)
daniel
daniel 2013 年 10 月 7 日
回答済み: moahaimen talib 2017 年 4 月 4 日
Hello,
i'm having grayscale image (which it's value uint8) and i transform it to double.
now i want to turn in into binary (1's and 0's) using kmeans
how do i do it?
tnx

回答 (2 件)

Yatin
Yatin 2013 年 10 月 15 日
編集済み: Yatin 2013 年 10 月 15 日
Hello,
Please check the link below. Maybe this helps. Also, I would like you to know that this is a part of the image processing toolbox in MATLAB.
Steps 5 onwards are of more relevance to your problem I suppose.
  2 件のコメント
gurleen ghuman
gurleen ghuman 2016 年 7 月 3 日
this segmentation is not working on gray image..can u plz help?
Image Analyst
Image Analyst 2016 年 7 月 3 日
No, I don't think you can do it. What are the two or more features such that you can define two clusters? All I know for sure that you have is gray level. What is/are the other feature(s)?

サインインしてコメントする。


moahaimen talib
moahaimen talib 2017 年 4 月 4 日
does k mean clustering works on binary image 0 1 thanks

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by