필터 지우기
필터 지우기

Area of Blob(s) after Step(Blob, Mask) command?

조회 수: 2 (최근 30일)
Jawad Ahmad
Jawad Ahmad 2017년 12월 4일
편집: Jawad Ahmad 2017년 12월 5일
I am wondering why for a merged blob area is almost same as single blob. Area of single blob is 21,738 and for a merged blob is 22900. Please see images for detail. This is a very slight difference. For other merged blobs the value of area is 30,000+.

답변 (1개)

John D'Errico
John D'Errico 2017년 12월 4일
Of course, we don't know how you computed the area of those blobs or even if you did indeed compute the correct areas. People make mistakes all the time, thinking they did what they wanted to do, when in fact, that was not true. I even made a mistake once like that, back in 1983 or so. ;-)
In all seriousness, we don't know how you computed those areas. My guess is, you did something wrong. For example, I downloaded those images into MATLAB, cropping just the areas of interest, then computed the number of while pixels in those regions. One blob had approximately 2.535 times as many white pixels as the other. So a very trivial computation tells me that your assertion is based on having done something wrong. But what? How do I know?
  댓글 수: 1
Jawad Ahmad
Jawad Ahmad 2017년 12월 5일
편집: Jawad Ahmad 2017년 12월 5일
Thanks for your reply. I am using a built-in function. [areas, centroids, bboxes] = step(blob, mask). Where mask = step(detector, frame). Both Blob and Detector are calculated using vision.ForegroundDetector.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by