elseif Idx(i)==2;
plot(data(i,1),data(i,2),'.b');
elseif Idx(i)==3;
plot(data(i,1),data(i,2),'.r');
elseif Idx(i)==4;
plot(data(i,1),data(i,2),'.k');
elseif Idx(i)==5;
plot(data(i,1),data(i,2),'.g');
end
end
cVec = 'bgrcmykbgrcmykbgrcmykbgrcmyk';
for k = 1:clustern
plot(clustercenter(k,1),clustercenter(k,2),'o','MarkerEdgeColor','k','MarkerFaceColor',cVec(k), 'MarkerSize',10)
end
在图像分割、图像跟踪,需要加入核函数。