Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Jawad Ahmad
Jawad Ahmad am 4 Dez. 2017
Bearbeitet: Jawad Ahmad am 5 Dez. 2017
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+.

Antworten (1)

John D'Errico
John D'Errico am 4 Dez. 2017
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 Kommentar
Jawad Ahmad
Jawad Ahmad am 5 Dez. 2017
Bearbeitet: Jawad Ahmad am 5 Dez. 2017
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.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by