Handling GUI axes to display images

1 Ansicht (letzte 30 Tage)
Mahesh
Mahesh am 3 Mär. 2014
Beantwortet: suong Tran am 31 Aug. 2017
I am using Gui to display two different images, so i used
axes(handles.axes1)
to set axes 1 as current axes and displayed image using
imshow(image1)
similarly i displayed image2 using the above format , but the image2 is then displayed in both axes1 and axes2 replacing image1 in axes1
So please help me solve the problem to display images properly

Akzeptierte Antwort

Image Analyst
Image Analyst am 3 Mär. 2014
Show your code. A single call to imshow() will NOT display in two axes. You must be doing something you are unaware of.
  2 Kommentare
Mahesh
Mahesh am 4 Mär. 2014
Yeah , its working properly now, but i cant understand why it showed in two axes previously.
Image Analyst
Image Analyst am 4 Mär. 2014
Give me your previous code, that I can run, and I'll tell you.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (3)

Giorgos Papakonstantinou
Giorgos Papakonstantinou am 3 Mär. 2014
imshow(image, 'parent',handle.axes1)
  1 Kommentar
Mahesh
Mahesh am 4 Mär. 2014
Thanks for your answer, i shall try this one...

Melden Sie sich an, um zu kommentieren.


vina borkar
vina borkar am 3 Apr. 2014
HEllo SIr i have like this means above problem..in matlab.. i want to do displying images from database or image folder in gui one by one by providing 'NEXT' button which will be provide in gui..
  1 Kommentar
Chandrasekhar
Chandrasekhar am 3 Apr. 2014
you can use he same command imshow to display the image. when next button is pressed, clear the present image using cla reset and plot the next image on the same axes.

Melden Sie sich an, um zu kommentieren.


suong Tran
suong Tran am 31 Aug. 2017
Thanks!

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by