Skip to content
Snippets Groups Projects
Commit 271c28bf authored by Nicola Vigano's avatar Nicola Vigano
Browse files

GtMultiVolView: reduced memory consumption of cell sum

parent ebc5bca7
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,10 @@ classdef GtMultiVolView < GtVolView
function vol = getMultiVol(vols, index)
if (iscell(vols))
if (index == 0)
vol = sum(cat(4, vols{:}), 4);
vol = vols{1};
for n = 2:numel(vols)
vol = vol + vols{n};
end
else
vol = vols{index};
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment