필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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

조회 수: 1 (최근 30일)
Ndoum ekanga Steve willy
Ndoum ekanga Steve willy 2017년 7월 19일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Ndoum ekanga Steve willy
Ndoum ekanga Steve willy 2017년 7월 19일
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 2017년 7월 20일
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)

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by