Commit 348379d3 authored by Eamon Doyle's avatar Eamon Doyle
Browse files

updated volume calculation

parent 0a4916e9
......@@ -744,7 +744,7 @@ if strcmp(handles.dcminfo.SOPClassUID,'1.2.840.10008.5.1.4.1.1.4.1')
end
pixelSpacing = d.PerFrameFunctionalGroupsSequence.Item_1.PixelMeasuresSequence.Item_1.PixelSpacing;
pixelsPerLungMatVox = handles.lungGridSize^2;
lmVoxVol = pixelSpacing(1)*pixelSpacing(2)*sliceThickness*pixelsPerLungMatVox;
lmVoxVol = pixelSpacing(1)*pixelSpacing(2)*sliceThickness*pixelsPerLungMatVox/1000; % divide by 1000 to convert mm^3 to cc
lungVol = lungVoxels * lmVoxVol;
elseif strcmp(handles.dcminfo.SOPClassUID,'1.2.840.10008.5.1.4.1.1.4')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment