Hello,
I want to read images from a directory and display them on
the GUI. So, depending on the number of images in the
directory the GUI will change .. how do i handle this ?
"Mamata Kukreja" <mamata_kukreja@yahoo.com> wrote in
message <fn28hl$4jn$1@fred.mathworks.com>...
> Hello,
> I want to read images from a directory and display them on
> the GUI. So, depending on the number of images in the
> directory the GUI will change .. how do i handle this ?
I'm assuming once you get the list of images in a folder
(using dir), you could just use subplot to plot them all in
a grid. You'd have a number of images (say 24), then you
could just generate the next-highest perfect square n^2 and
make an nxn grid of images which you fill up. Just have an
update function that clears the figure and does a subplot
of all the images.
"Ian Clarkson" <ian.clarkson@gesturetek.com> wrote in
message <fn29d8$ljd$1@fred.mathworks.com>...
> "Mamata Kukreja" <mamata_kukreja@yahoo.com> wrote in
> message <fn28hl$4jn$1@fred.mathworks.com>...
> > Hello,
> > I want to read images from a directory and display them on
> > the GUI. So, depending on the number of images in the
> > directory the GUI will change .. how do i handle this ?
>
> I'm assuming once you get the list of images in a folder
> (using dir), you could just use subplot to plot them all in
> a grid. You'd have a number of images (say 24), then you
> could just generate the next-highest perfect square n^2 and
> make an nxn grid of images which you fill up. Just have an
> update function that clears the figure and does a subplot
> of all the images.
"Ian Clarkson" <ian.clarkson@gesturetek.com> wrote in
message <fn29d8$ljd$1@fred.mathworks.com>...
> "Mamata Kukreja" <mamata_kukreja@yahoo.com> wrote in
> message <fn28hl$4jn$1@fred.mathworks.com>...
> > Hello,
> > I want to read images from a directory and display them on
> > the GUI. So, depending on the number of images in the
> > directory the GUI will change .. how do i handle this ?
>
> I'm assuming once you get the list of images in a folder
> (using dir), you could just use subplot to plot them all in
> a grid. You'd have a number of images (say 24), then you
> could just generate the next-highest perfect square n^2 and
> make an nxn grid of images which you fill up. Just have an
> update function that clears the figure and does a subplot
> of all the images.
Hey but my GUI is not fully empty .. i have other controls
also on it .. right hand side of the grid is for displaying
images which are read from a drive ..
"Mamata Kukreja" <mamata_kukreja@yahoo.com> wrote in
message <fn28hl$4jn$1@fred.mathworks.com>...
> Hello,
> I want to read images from a directory and display them
on
> the GUI. So, depending on the number of images in the
> directory the GUI will change .. how do i handle this ?
"Vihang Patil" <vihang_patil@yahoo.com> wrote in message
<fn2b79$pjl$1@fred.mathworks.com>...
> "Mamata Kukreja" <mamata_kukreja@yahoo.com> wrote in
> message <fn28hl$4jn$1@fred.mathworks.com>...
> > Hello,
> > I want to read images from a directory and display them
> on
> > the GUI. So, depending on the number of images in the
> > directory the GUI will change .. how do i handle this ?
>
>
> doc montage..
> HTH
> VIhang
Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central. Read the complete Disclaimer prior to use.