The segmented image should be multi colors, based on number of clusters. But I have mask with only one color "always red", Why? I need the segmented image
Help me please...
Comment only
27 Jun 2011
kmeans image segmentation
Application of kmeans clustering algorithm to segment a grey scale image on diferent classes.
Doesn't work for me. Tried to run it on the Shepp-Logan phantom:
>> [u,m]=kmeans(phantom(128),4);
??? Attempted to access h(1.2); index must be a positive integer or logical.
Error in ==> kmeans at 35
if(ima(i)>0) h(ima(i))=h(ima(i))+1;end;
Comment only
27 Jun 2011
kmeans image segmentation
Application of kmeans clustering algorithm to segment a grey scale image on diferent classes.
Comment only