Undefined function or variable 'im'.
Mostrar comentarios más antiguos
Also I got error for " imM=im>80;" in pushbutton2 function
Code:
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
[fname path]=uigetfile('*.jpg');
fname=strcat(path,fname);
im=imread(fname);
im=rgb2gray(im);
axes(handles.axes1)
imshow(im);
title('Grayscale Iris Image');
% --- Executes on button press in pushbutton2. function pushbutton2_Callback(hObject, eventdata,handles)
imM=im>80;
axes(handles.axes2)
imshow(imM);
title('Threshold Image');
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Image Preview and Device Configuration en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!