how to set 2 image in one gui?

i want to put 2 or 3 image in one gui ?
and how to How to navigate between guis?

 採用された回答

Image Analyst
Image Analyst 2012 年 11 月 25 日

0 投票

You can use GUIDE to place "axes" controls on the figure. Switch focus between them with the axes command, then display stuff in them
axes(handles.axesInputImage);
imshow(yourInputImage);
axes(handles.axesPlot);
plot(theData);
axes(handles.axesOutputImage);
imshow(yourOutputImage);
Otherwise if you have just a simple figure with multiple images on it then you can use subplot and imshow like I did in this demo code: http://www.mathworks.com/matlabcentral/answers/54731#answer_66451

8 件のコメント

Isee You
Isee You 2012 年 11 月 25 日
i want when i press button i select an image an i do some process on it and i want to show the image after the process and before it next to each other in the same gui
Image Analyst
Image Analyst 2012 年 11 月 25 日
Isee You
Isee You 2012 年 11 月 25 日
i just want to know hot to handles more than on axes in gui
Image Analyst
Image Analyst 2012 年 11 月 25 日
I know you do. That's why I answered the way I did. Do you not understand my answer? Have you tried to use GUIDE yet?
Isee You
Isee You 2012 年 11 月 25 日
yes i try but i get this error
folder c:\program files\matlab \work\magic\splash image does not exist
Isee You
Isee You 2012 年 11 月 25 日
i read it and understand part of it is this code true .,and i can use it
axes(handles.axes1);
imshow(imgOriginal, []);
axes(handles.axes2);
imshow(imgOriginal2, []);
Image Analyst
Image Analyst 2012 年 11 月 26 日
That's not an error. The application still runs. What is does is try to start up with the same folder as you last used. This is just telling you that that folder does not exist on your computer, so you need to do Step 1 which is to select a folder on your computer.
Sounds like you got the other code working though.
Isee You
Isee You 2012 年 11 月 26 日
yes it work .
Thank you very much

サインインしてコメントする。

その他の回答 (1 件)

Alec Nagel
Alec Nagel 2012 年 11 月 25 日

0 投票

Not quite sure if I have understood the question correctly, but to get two or more figures in one figure window you use the subplot command. subplot(2,4,7) will make a 2x4 grid of sub figures and choose the third one in the second row.
To activate a different window (for example figure 3) you use figure(3).

1 件のコメント

Isee You
Isee You 2012 年 11 月 25 日
Not in the same figure window , when i press button i select an image an i do some process on it and i want to show the image after the process and before it next to each other in the same gui

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by