how to sum objects from 2 differents image and print the total
Info
This question is closed. Reopen it to edit or answer.
Show older comments
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 Comments
Jan
on 19 Jul 2017
It sounds trivial: Create a for loop and counte the objects you have determined before. So what is the actual problem? What have you tried yet? Which problems occur?
Ndoum ekanga Steve willy
on 19 Jul 2017
Walter Roberson
on 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)
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!