I've build a GUI that let users manually adjust a segmentation. However, varargout only 'captures' the first correction made. Any other corrections are not represented in my final output. My varargout function looks as follows:
function varargout = Clean_images_OutputFcn(hObject, ~, handles) handles=guidata(hObject);uiwait% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
varargout{1} = handles.MC_segmentation;varargout{2}=handles.figure1;uiresume
Furthermore, I have an callback and pushbutton to close the GUI.
% --- Executes on button press in Push_end.
function Push_end_Callback(hObject, eventdata, handles)handles=guidata(hObject);uiresumevarargout{1} = handles.MC_segmentation;delete( handles.figure1)
How can I constantly keep updating my output?
Best Answer