Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

how to sum objects from 2 differents image and print the total

1 Ansicht (letzte 30 Tage)
Ndoum ekanga Steve willy
Ndoum ekanga Steve willy am 19 Jul. 2017
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I have 2 different images. I have applied connected components labeling to each of them to get the number of objects each of them containing. Now I want to count the number of objects of both images. Or May be using a for loop to count number objects in multiples different image. Any Ideas??
Thank you.
  3 Kommentare
Ndoum ekanga Steve willy
Ndoum ekanga Steve willy am 19 Jul. 2017
for k=1:selectedCard
[Label3, numObject4] = bwlabel(Iopened);
Total = sum(numObject4);
fprintf('\ntotal number of Clubs per card:%s' , numel(TotalSpade));
end
I want to display the sum of connected objects based on selected card.
Thank you.
Walter Roberson
Walter Roberson am 20 Jul. 2017
grand_total = 0;
for k=1:selectedCard
[Label3, numObject4] = bwlabel(Iopened);
Total = sum(numObject4);
grand_total = grand_total + Total;
fprintf('\ntotal number of Clubs per card:%s' , numel(TotalSpade));
end
disp(grand_total)

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by