Handling GUI axes to display images

조회 수: 2 (최근 30일)
Mahesh
Mahesh 2014년 3월 3일
답변: suong Tran 2017년 8월 31일
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

채택된 답변

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

댓글을 달려면 로그인하십시오.

추가 답변 (3개)

Giorgos Papakonstantinou
Giorgos Papakonstantinou 2014년 3월 3일
imshow(image, 'parent',handle.axes1)
  댓글 수: 1
Mahesh
Mahesh 2014년 3월 4일
Thanks for your answer, i shall try this one...

댓글을 달려면 로그인하십시오.


vina borkar
vina borkar 2014년 4월 3일
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
Chandrasekhar
Chandrasekhar 2014년 4월 3일
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.

댓글을 달려면 로그인하십시오.


suong Tran
suong Tran 2017년 8월 31일
Thanks!

태그

Community Treasure Hunt

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

Start Hunting!

Translated by