i make a function in which i apply contouring on image and can not access in other function as i set it as global?what should i do?
Mostra commenti meno recenti
i make a function in which i apply contouring on image and set it as global .now i want to use this global variable in other function.i use this variable to show the image but it show nothing.my code is
function pushbutton5_Callback(hObject, eventdata, handles)
global scx
imshow(scx)
function pushbutton6_Callback(hObject, eventdata, handles)
global scx
global a
gd = imread(a);
%imshow(sx)
sf = rgb2gray(gd);
scx = imcontour(sf , 10);
it show just blank popup screen and does not show the image that is save in scx variable. waiting for your help.
3 Commenti
sana saleeme
il 9 Mag 2016
sana saleeme
il 9 Mag 2016
Walter Roberson
il 9 Mag 2016
Image Analyst sleeps sometimes (or so I presume.)
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Lighting, Transparency, and Shading in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
