Info

This question is closed. Reopen it to edit or answer.

i want to link a pushbutton callback of one gui to axes3 of another gui. i used setappdata and getappdata for this,but caanot understand.please help.

1 view (last 30 days)
in gui2..i want my blurred image to come in axes3 of this gui. my code is - global I2 global IG
[I2, rect] = imcrop(J); axes(handles.axes2); imshow(I2);
handles.I2=I2; guidata(hObject,handles); setappdata(0,'img',I2);
in gui3..i made an blur image,i want this image to be shown in axes3 of gui2, my code is global I2 global slider_len global slider_theta global psf global IG
I2= getappdata(0,'img');
h=gui_2; waitfor(h);
psf=fspecial('gaussian',round(slider_len),round(slider_theta)); IG=imfilter(I2,psf,'conv');
imshow(IG,'gui_2',handles.axes3); handles.IG=IG; guidata(hObject,handles);

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!