How to use K-Mean Algorithm to segment and cluster Binary image

hi please i need your help to segment and cluster binary image using K-means algorithm i need to understand how to deal with the features of the binary image please help me i am in deep trouble i cant finish my research thank you in advanced

 Réponse acceptée

Image Analyst
Image Analyst le 10 Avr 2017
What would your feature(s) be for the image? The locations? The gray levels (doesn't make sense though). Why do you think you need kmeans()? Why don't you let us see your binary image and tell us how many classes you want, and which blobs you want in each class. We can't say much otherwise.

5 commentaires

moahaimen talib
moahaimen talib le 11 Avr 2017
Modifié(e) : moahaimen talib le 11 Avr 2017
+Thanks for answering i have a research to extract texts from old tablet and recognize it so my professor said to me to use kmeans to cluster and segment the image , i used (Entropy,Energy,Variance,Homotigent,Mean) features
if u can help me i would be really gratefull
I still don't know what you're clustering. It sounds like the image has already been thresholded/binarized so that it's no longer gray scale. So do you want to find out which letters or words are nearby each other and classify those groupings into numbered classes? If so, DBScan might help: https://en.wikipedia.org/wiki/DBSCAN
could i directly contact you sir, i am in deep trouble and my project will fail if i dont solve the problem please sir provide with any assistant you can i am now trying to use almost everything but i am really new in matlab i just used it in december 2016 many things i dont understand i reached a very good stage but i cant finish it due my little experiences thank you sir this is my email moahaimen@gmail.com
I don't conduct free consultations on the side, only here. I'm attaching a kmeans demo and a document thresholding demo. Maybe they will help.
ok thank you sir , for the files

Connectez-vous pour commenter.

Plus de réponses (1)

moahaimen talib
moahaimen talib le 6 Mai 2017
Dear sir i am using this image i need i made a binary i need to extract each character then recognize using deep neural first i read your answer of line segmentation this is the url
https://www.mathworks.com/matlabcentral/answers/181941-i-need-a-matlab-code-for-segmentation-of-text-lines-in-a-scanned-document-image-using-projection-pro
then i need to make these algorithm steps
1-Lines Segmentation 2-Words Segmentation 3-Characters Segmentation 4-Characters Segmentation
i wish you can help me with that sir thank you

Community Treasure Hunt

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

Start Hunting!

Translated by