How to detect the the are of the object?

1 view (last 30 days)
Mariia Sidulova
Mariia Sidulova on 9 Jun 2018
Answered: Arun Mathamkode on 12 Jun 2018
I have a picture with lot of cells (cardiac muscle) on it. I've attached sample picture. I need to find area of each cell without circling the cell individually. Any ideas how I can approach the problem?
Thank you very much!

Answers (1)

Arun Mathamkode
Arun Mathamkode on 12 Jun 2018
One of the ways to achieve this is by using connected component analysis or hough circles, but I believe you may need to use a better contrast image in the first place.
If there is a better contrast between the cell boundaries and the cell body, you can first extract the cell boundaries by thresholding. This provides you with a binary image where white region (or 1s) represents the cell boundaries. If you invert this binary image, now the cell body becomes the white part and the boundaries become black. To avoid connectivity between the cell body and the close neighboring cell bodies, you can erode the white regions by using the imerode function.
If everything is proper, now each cell body will an independent white region in the image. you can use regionprops function to find out the individual area.

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!