How I can have the volume of a DICOM image

2 views (last 30 days)
Vania krm
Vania krm on 4 Jul 2018
Commented: Vania krm on 4 Jul 2018
dose this line of this code is correct to heve the sum of all voxels in image?
if(exist('filename','var')==0) [filename, pathname] = uigetfile('*.nii', 'Read nii-file'); filename = [pathname filename]; end s1=sum(filename(:))
  6 Comments
Rik
Rik on 4 Jul 2018
If you use that function to read your data, and that function has no bugs, then S=sum(V(:)); will give you the sum.
To correctly format code on this forum, select all the code you pasted and the click the {}Code button.
Vania krm
Vania krm on 4 Jul 2018
Rik you really help me. very very thanks and wish you best.

Sign in to comment.

Answers (0)

Categories

Find more on Image Processing Toolbox 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!