Thread Subject: Displaying multiple images on the same axes

Subject: Displaying multiple images on the same axes

From: jk Wang

Date: 28 Jan, 2008 16:23:02

Message: 1 of 6

Hi, all,

I want to develop a GUI of library browser. So do you know
how to display multiple images on the same axes? (Not the
same figure, then the users can both select the images or
the axes displaying them. )

Thank you!!!

JK Wang

Subject: Displaying multiple images on the same axes

From: Anh Huy Phan

Date: 28 Jan, 2008 16:37:02

Message: 2 of 6

"jk Wang" <wjk1984@gmail.com> wrote in message
<fnkvh6$997$1@fred.mathworks.com>...
> Hi, all,
>
> I want to develop a GUI of library browser. So do you know
> how to display multiple images on the same axes? (Not the
> same figure, then the users can both select the images or
> the axes displaying them. )
>
> Thank you!!!
>
> JK Wang

Combine your images into one commune image, then display the
new one.

cat or montage function

HTH

Anh Huy Phan
RIKEN - BSI

Subject: Displaying multiple images on the same axes

From: Ian Clarkson

Date: 28 Jan, 2008 16:41:02

Message: 3 of 6

"jk Wang" <wjk1984@gmail.com> wrote in message
<fnkvh6$997$1@fred.mathworks.com>...
> Hi, all,
>
> I want to develop a GUI of library browser. So do you know
> how to display multiple images on the same axes? (Not the
> same figure, then the users can both select the images or
> the axes displaying them. )
>
> Thank you!!!
>
> JK Wang

help montage

that may be a start to what you're looking for?

Subject: Displaying multiple images on the same axes

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 28 Jan, 2008 17:02:13

Message: 4 of 6

In article <fnkvh6$997$1@fred.mathworks.com>,
jk Wang <wjk1984@gmail.com> wrote:

>I want to develop a GUI of library browser. So do you know
>how to display multiple images on the same axes? (Not the
>same figure, then the users can both select the images or
>the axes displaying them. )

image() and imshow() allow you to specify X and Y positions for
the displayed image.
--
   "History is a pile of debris" -- Laurie Anderson

Subject: Displaying multiple images on the same axes

From: jk Wang

Date: 29 Jan, 2008 14:57:06

Message: 5 of 6

Thank you, guys!

I tried all of your methods. But there are still some problems.

1. I don't want to combine all of those images into one
image object. Since my goal is to develop a library browser,
the images should be identified as individual objects, thus
when user click on each object, there will be different
responds accordingly.

2. For montage() function, it makes an image array as a
single image object. So it has the same problem as 1.

3. image() in simulink can specify the relative position of
icon image to mask, but I couldn't find how to specify
position in function image() nor in imshow(). Both of them
can only specify XData, YData you want to include or Xlabel
or Ylabel to mark the image.

So does anyone know how to display multiple images as
individual objects on a same axes?

Thank you soooooooo much!!!

JK Wang


roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <fnl1ql$oc5$1@canopus.cc.umanitoba.ca>...
> In article <fnkvh6$997$1@fred.mathworks.com>,
> jk Wang <wjk1984@gmail.com> wrote:
>
> >I want to develop a GUI of library browser. So do you know
> >how to display multiple images on the same axes? (Not the
> >same figure, then the users can both select the images or
> >the axes displaying them. )
>
> image() and imshow() allow you to specify X and Y
positions for
> the displayed image.
> --
> "History is a pile of debris" --
Laurie Anderson

Subject: Displaying multiple images on the same axes

From: Joaquim Luis

Date: 29 Jan, 2008 18:00:22

Message: 6 of 6


> So does anyone know how to display multiple images as
> individual objects on a same axes?
>
> Thank you soooooooo much!!!

Roberson already gave you the answer. You can call image()
multiple times.
For example
image([1 128],[1 128], img1)
image([128 128*2],[1 128],img2)
should put img1 and img2 images (assumed here of size
128x128) side by side on the same axes.

J. Luis

Tags for this Thread

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.

rssFeed for this Thread

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.

Contact us at files@mathworks.com