필터 지우기
필터 지우기

How to find pixels number of a 3D dataset

조회 수: 2 (최근 30일)
Silvia Caruso
Silvia Caruso 2015년 6월 3일
답변: Image Analyst 2015년 6월 3일
I have a 3D dataset D=260*320*100 of 100 slice. After segmentation I need to Know the total volume (found as total number of pixel) of the 3D dataset. I tried with this code, but I'm not able to find the total volume:
CCvol = bwconncomp(D(:,:,:), 8);
STATS = regionprops(CCvol, 'Area');
Volume=sum(STATS.Area)

채택된 답변

Image Analyst
Image Analyst 2015년 6월 3일
Assuming D is your binary image, and you want the volume of the true/white/1 voxels, you'd simply do this:
Volume = sum(D(:)); % Compute sum of all "true" voxels.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 3-D Volumetric Image Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by