how to obtain pixel values of cluster
Mostrar comentarios más antiguos
sir, i have done k means clustering on an image.By using imagesc command ,i can view he image and see 3 clusters. i used adaptivecluster function from mathworks.it works well.What i want is that i want to delete the one set of cluster or want the pixel values in each cluster.please help?
Respuestas (1)
Image Analyst
el 28 de Jun. de 2014
0 votos
What toolbox is the "adaptivecluster" function in? Please list it in the Products section. A search of the entire Mathworks web site didn't show it anywhere except in your question. And your question does not provide us with enough details to answer. You gave no original image, no clustered image, no code, nothing - so how are we supposed to help, I mean other than referring you to this: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer?
7 comentarios
raj kumar
el 29 de Jun. de 2014
raj kumar
el 29 de Jun. de 2014
raj kumar
el 29 de Jun. de 2014
raj kumar
el 29 de Jun. de 2014
Image Analyst
el 29 de Jun. de 2014
Well I didn't do much, but you're welcome. By the way, we don't call those clusters, we call them blobs, regions, or connected components. To get their areas you can do
labeledImage = bwlabel(binaryImage);
measurements = regionprops(labeledImage, 'Area');
allAreas = [measurements.Area];
raj kumar
el 29 de Jun. de 2014
Image Analyst
el 29 de Jun. de 2014
Here's an example using an image and kmeans() from the Mathworks: http://www.mathworks.com/products/demos/image/color_seg_k/ipexhistology.html
Even though you say you got the answer already , it might be instructive to look over their example.
Categorías
Más información sobre k-Means and k-Medoids Clustering en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
