Matlab

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

bw1=imread('mac.

gif');
>> s=regionprops(bw1,'Centroid');
>> hold on
>> for k=1:numel(s)
plot(s(k).Centroid(1),s(k).Centroid(2),'r*');
end
>> hold off

You might also like