How do I put this in a for loop

1 visualización (últimos 30 días)
Chok Chuan
Chok Chuan el 6 de Mayo de 2015
labeledImage = bwlabel(originalImage);
blobMeasurements = regionprops(labeledImage, 'EulerNumber','Area');
numberOfBlobs = size(blobMeasurements, 1);
figure;
imshow(I);
enumbers = [blobMeasurements.EulerNumber];
want_blob = enumbers ==0;
wanted_blobs = blobMeasurements(want_blob);
wanted_areas = [wanted_blobs.Area];
I have done the above to find the area of closed contours in a ball. I have 9 balls in a picture how do I put the above code in a for loop? for the 9 different balls

Respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by