Calculating the area inside a region of interest
4 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Walter Roberson
2011-9-8
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
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!