Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to find the volume of a region in a segmented image?
조회 수: 1 (최근 30일)
이전 댓글 표시
답변 (1개)
Matt J
2021년 5월 15일
stats = regionprops3(segmentationMap,'Volume')
댓글 수: 3
Image Analyst
2021년 5월 15일
Why not? Why prevent yourself from using a built-in function? Your post is not labeled as homework, which is usually the reason, so why not use it?
I was going to assume that you had 3 binary images, one for each segmentation that you want to do (background, gray matter, white matter) and that you could simply use nnz() on each binary image, but unfortunately you probably won't let yourself use nnz() either.
To find out what you can use, read this:
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!