Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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: 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: 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: 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: 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: 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

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.

Contact us