Hi, I have an input image and i have loaded into GUI using axes. my code
handles.input_image = double(rgb2gray(imread('Trial_image.jpg')));
axes(handles.in_image);
image(handles.input_image);
The variable name is handles.input_image and the tag name is handles.in_image.
when i call the tag name of the axes to get the image into the push button. it doesnt have the image. The variable has the image but how can i use it in the push button. any ideas? Thanks in advance

 Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 21 Avr 2013
Modifié(e) : Azzi Abdelmalek le 21 Avr 2013
To display your image use
imshow(handles.input_image);

5 commentaires

Hi Azzi, Thanks for your reply. My question is that why the image is not available when i call a push button. the Axes Tag is empty and the variable has the image. How can i get the image in the push button?
In your pushbutton callback add
imshow(handles.input_image);
Hi Azzi, I found the answer,Actually i did my initial coding in Opening function and thats the reason. Now i solved it. Thanks for your responding me.
Regards, Mohan
oi oi
oi oi le 11 Déc 2016
so, how it be solved?
how can i copy data from axes2, then display to axes3 ??

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by