Extract Specific part of image every time using kmean (without shuffle its position)
Mostrar comentarios más antiguos
Hello Everyone
I have download "Plant Analysis" project from https://www.mathworks.com/matlabcentral/fileexchange/50624-plant-disease-classification. When I run this project, position of image cluster (the class numbers) changes every time.

Actually what I am trying to do to extract only the "green Healthy" part of leaf (like Cluster 3 and Cluster 2 in the second image) every time when I run this project.
After long search on internet I have found that kmean use some random value that's why it happens. And soon I have found its solution by Writing "rng(1)" at the top of code. and every time the same image come on its same place like this

But the problem is that when I give it another image, the green healthy part cluster should class #2(Cluster 2) but unfortunately it was not.

So my question is, when I give sequence of images in this code and select lets say "segmented_images{1}" how I make sure that I selected the green healthy leaf image? Any suggestion or code modification please.
Sorry for my bad English.
I am using Matlab 2013a.
Respuesta aceptada
Más respuestas (1)
waqar ismail
el 4 de Feb. de 2018
0 votos
if u are using matlab then matlab color segmentation app will help you more then k means
Categorías
Más información sobre Agriculture en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!