Hi,
I'm wandering how come the below code from GUI doesnt create registers that are stored in workplace? What should i do if i wana create the register in workplace via GUI?
function im1_ButtonDownFcn(hObject, eventdata, handles) % hObject handle to im1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global a; [FileName,PathName]= uigetfile(... {'*.bmp;*.jpg;*.jpeg;*.tif;*.tiff;*.png','All Image Files(*.bmp,*.jpg,*.jpeg,*.tif,*.tiff,*.png)';... '*bmp','bitmap Files (*.bmp)';... '*.jpg;*.jpeg','JPEG Files(*.jpg,*.jpeg)';... '*.tif;*.tiff','Tiff Files(*.tif,*.tiff)';... '*png','PNG Files (*.png)';... '*.*','All Files (*.*)'}, ... 'Pick an image file'); fullpath = sprintf('%s%s',PathName, FileName); a=imread(fullpath); imshow(fullpath,'parent',handles.im1);
Best Answer