Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: Displaying images dynamically in GUI

Subject: Displaying images dynamically in GUI

From: Mamata Kukreja

Date: 21 Jan, 2008 14:00:22

Message: 1 of 6

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 ?

Subject: Re: Displaying images dynamically in GUI

From: Ian Clarkson

Date: 21 Jan, 2008 14:15:04

Message: 2 of 6

"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.

Subject: Re: Displaying images dynamically in GUI

From: Mamata Kukreja

Date: 21 Jan, 2008 14:29:02

Message: 3 of 6

"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.

Thanks wil try and get back to you soon !

Subject: Re: Displaying images dynamically in GUI

From: Mamata Kukreja

Date: 21 Jan, 2008 14:37:01

Message: 4 of 6

"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 ..

Subject: Re: Displaying images dynamically in GUI

From: Vihang Patil

Date: 21 Jan, 2008 14:46:01

Message: 5 of 6

"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

Subject: Re: Displaying images dynamically in GUI

From: Mamata Kukreja

Date: 21 Jan, 2008 15:27:01

Message: 6 of 6

"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


may u elaborate a lil please

Tags for this Thread

Everyone's Tags:

gui

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
gui Mamata Kukreja 21 Jan, 2008 09:00:28
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

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.
Related Topics