필터 지우기
필터 지우기

How do i meassure total surface area with regionprops?

조회 수: 2 (최근 30일)
August Hoel
August Hoel 2018년 10월 24일
답변: Image Analyst 2018년 10월 24일
Hey, I am trying to measure total surface area and perimeter of the mitochondrial networks. I used the regionprops function, however I can only meassure the area of single objects. When I try to sum everything together it either gives an error message, or the whole thing just equals one.
%%Label items for quantification of total area
[mitLabel, mitNum] = bwlabel(Ibin)
mitStats = regionprops(mitLabel, 'Basic')
mitArea = mitStats.Area
I dont know what to do from here. All functions like sum(MitArea, 2, 'default') either fails or equals one. I just want to add all induvidal areas of components into one combined surface area.

채택된 답변

Image Analyst
Image Analyst 2018년 10월 24일
Try this
allBlobAreas = [mitStats.Area]; % Extract all areas from structure into double vector.
totalMitArea = sum(allBlobAreas)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by