Calculate blobs properties from labeled image
[A, BB, ctr] = imblobprop(imin)
Source Image
Area of the blob
Bounding box for the blob
Centroid of the blob
This function find components properties, for now, area and bounding box.
A = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg")); A_edge = edge(A,'canny'); se = imcreatese('ellipse',15,15); A_dilate = imdilate(A_edge,se); [A_labeled,n] = imlabel(A_dilate); imshow(A_labeled,jetcolormap(n)); [Area, BB, ctr] = imblobprop(A_labeled); imrects(BB,[255,0,0]); | ![]() | ![]() |