How I can have the volume of a DICOM image
2 views (last 30 days)
Show older comments
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
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.
Answers (0)
See Also
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!