Reputation: 9
blobAnalysis = vision.BlobAnalysis('BoundingBoxOutputPort', true, ...
'AreaOutputPort', true, 'CentroidOutputPort', true, ...
'MinimumBlobArea', 100);
[areas, centroids, bbox] = step(blobAnalysis, filteredForeground);
Does the result in the vector areas represent the area of the blob (it measured in pixel or no)?
Upvotes: 0
Views: 166
Reputation: 13945
As mentioned in the docs for the BlobAnalysis
object:
[AREA,CENTROID,BBOX] = step(H,BW) returns the area, centroid and the bounding box of the blobs when the AreaOutputPort, CentroidOutputPort and BoundingBoxOutputPort properties are set to true.
Therefore, the answer to your question is YES. And the result is in pixels.
To answer your comment about the bounding box, if you read CAREFULLY the docs you will find the information:
M-by-4 matrix of [x y width height] bounding box coordinates, where M represents the number of blobs and [x y] represents the upper left corner of the bounding box
Upvotes: 1