Calculating the area inside a region of interest
Show older comments
Hello, I am getting fluorescent images with a hyper fluorescent area in the center of my image. I am trying to come up with an algorithm which it could calculate the area "inside" the rim that is shown in my images. The area does not follow a set shape, sometimes it's circular, sometimes elliptical and sometimes semi-rectangular. Any help is appreciated.
Answers (1)
Walter Roberson
on 8 Sep 2011
0 votes
Create a bw version of it, true for the parts inside. imfill() that with the 'holes' option. Then either regionprops() that with the 'Area' option, or simply us sum(FilledImage(:)) to get the total number of pixels
Categories
Find more on Image Segmentation and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!