Thread Subject: image display

Subject: image display

From: bob

Date: 29 May, 2008 13:40:20

Message: 1 of 4

Hi everyone,
    I have two images (.bmp) that I would like to load into
my MATLAB. I would like them both to show up in the same
frame and am having trouble doing that. Also, if it is
possible, is there a way to have my images put into the
output in the command with the rest of my results, or does
it have to come up in a new screen.

Thanks,
Bob

Subject: image display

From: Vihang Patil

Date: 29 May, 2008 14:33:02

Message: 2 of 4

"bob " <robert.quitadamo@villanova.edu> wrote in message
<g1mbo4$4i8$1@fred.mathworks.com>...
> Hi everyone,
> I have two images (.bmp) that I would like to load
into
> my MATLAB. I would like them both to show up in the
same
> frame and am having trouble doing that. Also, if it is
> possible, is there a way to have my images put into the
> output in the command with the rest of my results, or
does
> it have to come up in a new screen.
>
> Thanks,
> Bob

doc subplot
hth
vihang

Subject: image display

From: surya narayana

Date: 28 Aug, 2008 03:20:03

Message: 3 of 4

Dear Vihang and everyone else,

Though I do not have a complete answer to the question posed
by you, I have some M-code to do this. You can try

imadd(x,y) where x and y are two images. The condition is
that they both have to be of the same dimension. The example
of 'rice.png' availble in Matlab help is two D. However I am
trying add two 3 D images without any succes. Can I have
your and others ideas.

Thanks in advance

snray

"Vihang Patil" <vihang_patil@yahoo.com> wrote in message
<g1mequ$m7j$1@fred.mathworks.com>...
> "bob " <robert.quitadamo@villanova.edu> wrote in message
> <g1mbo4$4i8$1@fred.mathworks.com>...
> > Hi everyone,
> > I have two images (.bmp) that I would like to load
> into
> > my MATLAB. I would like them both to show up in the
> same
> > frame and am having trouble doing that. Also, if it is
> > possible, is there a way to have my images put into the
> > output in the command with the rest of my results, or
> does
> > it have to come up in a new screen.
> >
> > Thanks,
> > Bob
>
> doc subplot
> hth
> vihang

Subject: image display

From: Adam

Date: 28 Aug, 2008 12:14:02

Message: 4 of 4

"Vihang Patil" <vihang_patil@yahoo.com> wrote in message
<g1mequ$m7j$1@fred.mathworks.com>...
> "bob " <robert.quitadamo@villanova.edu> wrote in message
> <g1mbo4$4i8$1@fred.mathworks.com>...
> > Hi everyone,
> > I have two images (.bmp) that I would like to load
> into
> > my MATLAB. I would like them both to show up in the
> same
> > frame and am having trouble doing that. Also, if it is
> > possible, is there a way to have my images put into the
> > output in the command with the rest of my results, or
> does
> > it have to come up in a new screen.
> >
> > Thanks,
> > Bob
>
> doc subplot
> hth
> vihang

Another option

imagesc([pic1, pic2]) % requires same # of rows

They have to be displayed in a figure window.

~Adam

Tags for this Thread

Everyone's Tags:

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
image bob 29 May, 2008 09:45:10
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