how to use kmeans function to transform grayscale image to binary

4 vues (au cours des 30 derniers jours)
daniel
daniel le 7 Oct 2013
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

Réponses (2)

Yatin
Yatin le 15 Oct 2013
Modifié(e) : Yatin le 15 Oct 2013
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 commentaires
gurleen ghuman
gurleen ghuman le 3 Juil 2016
this segmentation is not working on gray image..can u plz help?
Image Analyst
Image Analyst le 3 Juil 2016
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)?

Connectez-vous pour commenter.


moahaimen talib
moahaimen talib le 4 Avr 2017
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