Hi, Jose, I have 2 questions on the kernel.
1). Is it gaussian kernel which is mentioned in the paper of Buades. As far as i know, the one in your code is not gaussian.
2). why you take these two steps ?
average = average + wmax*input2(i1,j1);
sweight = sweight + wmax;
I cannot find any ground in the original paper, but it does make my algorithm oscillate less. could you give me some idea, why you make them ?
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