MATLAB Answers

Centroid of thin-edged (One Pixel thickness) connected blobs

4 views (last 30 days)
Mahi on 30 Mar 2018
Commented: Mahi on 30 Mar 2018
Hello Everyone, With regionprops() we can find centroid of any blob, but if this is the question with thin edged (One Pixel thickness) mask then how to proceed further? I want to find the separate Centroid of both of the blob. Each of them share only one-pixel thick boundary which is common. Please find the image attached with this question. Thanking you in anticipation.


Sign in to comment.

Accepted Answer

Ahmet Cecen
Ahmet Cecen on 30 Mar 2018
Edited: Ahmet Cecen on 30 Mar 2018
1) Fill the holes/"blobs" in the image.
2) Subtract the boundaries from the filled image to obtain 2 disconnected blobs (4 way connectivity due to pixelization).
3) Find individual blobs.
4) Find their centroid.

More Answers (0)


Translated by