Skip to content
Snippets Groups Projects
Commit 16f8433c authored by Mark Winter's avatar Mark Winter
Browse files

MATLAB v7.3 file format causes ~10x increase in file size on our data...

MATLAB v7.3 file format causes ~10x increase in file size on our data structures, disabled the switch except in cases of memory usage over 2GB.
parent 5b4dceef
Branches
Tags
No related merge requests found
......@@ -26,7 +26,18 @@
function SaveLEVerState(filename)
global CellFamilies CellHulls CellTracks HashedCells Costs GraphEdits CONSTANTS ConnectedDist CellPhenotypes Log ReplayEditActions FluorData HaveFluor ResegLinks
gVars = whos('CellFamilies','CellHulls','CellTracks','HashedCells','Costs','GraphEdits','CONSTANTS',...
'ConnectedDist','CellPhenotypes','Log','ReplayEditActions',...
'FluorData', 'HaveFluor', 'ResegLinks', 'global');
totalSize = sum([gVars.bytes])/1024/1024;
saveParam = '';
if ( totalSize > 2000 )
saveParam = '-v7.3';
end
save(filename,'CellFamilies','CellHulls','CellTracks','HashedCells','Costs','GraphEdits','CONSTANTS',...
'ConnectedDist','CellPhenotypes','Log','ReplayEditActions',...
'FluorData', 'HaveFluor', 'ResegLinks', '-v7.3');
'FluorData', 'HaveFluor', 'ResegLinks', saveParam);
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment