1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| % --- Executes on button press in start.
function start_Callback(hObject, eventdata, handles)
% hObject handle to start (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
handles = guihandles(gcf);
file = get(handles.file,'String');
filtre = get(handles.filtre,'String');
coefsupr = str2num(get(handles.coefsupr,'String'));
coefdet = str2num(get(handles.coefdet,'String'));
coefliss = str2num(get(handles.coefliss,'String'));
x = str2num(get(handles.x,'String'));
y = str2num(get(handles.y,'String'));
w = str2num(get(handles.w,'String'));
h = str2num(get(handles.h,'String'));
[cell_area,recovered_cell,BWfinal] = test2(file,filtre,coefsupr,coefdet,coefliss,x,y,w,h)
set(handles.arrive,'HandleVisibility','ON');
axes(handles.arrive);
image(recovered_cell);
axis equal;
axis tight;
axis off;
set(handles.milieu,'HandleVisibility','ON');
axes(handles.milieu);
image(BWfinal);
axis equal;
axis tight;
axis off;
set(handles.milieu,'HandleVisibility','OFF');
set(handles.arrive,'HandleVisibility','OFF'); |
Partager