axes(handles.axesImage);
imshow(imageArray, []);
You can also use image or imagesc if you don't have the Image
Processing Toolbox.
panhandle = uipanel(...);
panax = axes('Units','normal', 'Position', [0 0 1 1], 'Parent', panhandle);
imhandle = imshow(panax, ImageToShow);
Hey man, thanks for your reply.
But I just wonder why is it necessary to use 'axes' or image processing toolbox. I use want to show an image in a certain place with a certain scale.
"YIMING" wrote in message <ifpi1p$nbv$1...@fred.mathworks.com>...
axes(handles.axesImage);
imshow(imageArray, []);
As I created a GUI for displaying images, what do you mean by "put an 'axes' control on the figure"? The scenario is actually, I have a 'browser' button on my UI, by clicking with I could select an image file, and I wish to render it on a specified location of my GUI with a certain scale.
Would you please elaborate your method? Thank you very much for this.
"Yumnam Kirani" <kirani...@gmail.com> wrote in message <ifpjkc$4sv$1...@fred.mathworks.com>...
All graphic plots (line, image) have to be plotted on the so-called AXES in Matlab. So you need to create an AXES either with AXES command or if you are using GUIDE add an AXES object.
To learn more, read
help AXES
help GCA
Replace imshow() (image processing toolbox required) with image() of imagesc() command.
Bruno