Effacer les filtres
Effacer les filtres

How to avoid overlapping of image when using a GUI?

5 vues (au cours des 30 derniers jours)
Jyothis Jose
Jyothis Jose le 6 Mai 2014
I have created a GUI for my program. The GUI has 6 push buttons. The first push button read and show an image. After executing all the 6 push buttons and again clicking the first input button for getting the next input image I have the following trouble.
I have input images of both .tif and .png type. If the previous and present input are of same type then it shows no problem. But if the New input is a png image and previous input is tiff type (and vice-versa) then the new input image is shown overlapping above the previous image. Is there any solution for this?? Both type inputs are of different size. Is this the problem?

Réponse acceptée

Image Analyst
Image Analyst le 6 Mai 2014
You probably have a hold on in there somewhere to lock down the size, and then you're putting up a smaller image after a larger image. Put cla('reset') before the call to imshow() to fix it and let it autosize again and clear out any old images in the axes control.
  1 commentaire
Jyothis Jose
Jyothis Jose le 6 Mai 2014
Thank you sir. The problem is solved.

Connectez-vous pour commenter.

Plus de réponses (1)

Mingming
Mingming le 25 Nov 2016
good!

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by