Commit 0a4916e9 authored by Eamon Doyle's avatar Eamon Doyle
Browse files

minor verbosity fix

parent 7d901b47
......@@ -98,6 +98,7 @@ function pushbutton_save_Callback(hObject, eventdata, handles)
% handles structure with handles and user data (see GUIDATA)
lungMatrix = handles.lungMatrix;
lungStats = handles.lungStats;
gitInfo = handles.gitInfo;
savePath = [handles.path '/mergeLungROI'];
fname = handles.curName;
......@@ -105,7 +106,7 @@ if exist(savePath,'dir') ~= 7
mkdir(savePath);
end
try
save([savePath '/mergeLung-' fname '.mat'],'lungMatrix')
save([savePath '/mergeLung-' fname '.mat'],'lungMatrix', 'lungStats','gitInfo');
set(handles.checkbox_saved,'Value',1,'BackgroundColor','g');
axes(handles.axes1);
%warn('here')
......@@ -764,6 +765,10 @@ st = st + sprintf("\n\n\nVolumes:\n\nWarning these may be very wrong\n");
st = st + sprintf(" Estimated Total Lung Volume: %06.1f cc", lungVol);
st = st + sprintf("\n\n\nMiscellaneous:\n\nMost people can ignore these\n");
st = st + sprintf(" LungGridSize: %i", handles.lungGridSize);
set(handles.statsTextbox,'String',st);
lungStats = struct("countLungVoxels", lungVoxels...
......@@ -771,8 +776,8 @@ lungStats = struct("countLungVoxels", lungVoxels...
, "countHypointVoxels", lungHypo...
, "countHyperintVoxels", lungHyper...
, "countBronchodisplasticVoxels", lungBronchodyslasia ...
, "estimatedLungVolume", lungVol...
)
, "estimatedLungVolumeCC", lungVol...
);
handles.lungStats = lungStats;
guidata(hObject, handles);
\ No newline at end of file
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