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

Thread Subject: Image name........ imshow()

Subject: Image name........ imshow()

From: Mamata Kukreja

Date: 27 Feb, 2008 18:24:02

Message: 1 of 7

Hello,
I have displayed images in GUI using AXES....
The problem that is coming is when i am displaying the
image along with that the path(From where the image was
read) of the image also gets printed above the image....
I dont want the the path to be printed can anyone help in
this....

Subject: Re: Image name........ imshow()

From: Bryan

Date: 27 Feb, 2008 18:37:02

Message: 2 of 7

"Mamata Kukreja" <mamata_kukreja@yahoo.com> wrote in message
<fq49s2$eup$1@fred.mathworks.com>...
> Hello,
> I have displayed images in GUI using AXES....
> The problem that is coming is when i am displaying the
> image along with that the path(From where the image was
> read) of the image also gets printed above the image....
> I dont want the the path to be printed can anyone help in
> this....

i am not sure what, exactly, is going on in your code. if
you could post your code, it might help. short of that,
maybe you can simply have no text displayed above your image
if you add this to your code:

title([]);

this just sets the title string to an empty vector, so
nothing will be displayed there.

hth,
bryan

Subject: Re: Image name........ imshow()

From: Mamata Kukreja

Date: 29 Feb, 2008 10:04:03

Message: 3 of 7

"Bryan " <cssmwbs@gmail.com> wrote in message <fq4ake$rk2
$1@fred.mathworks.com>...
> "Mamata Kukreja" <mamata_kukreja@yahoo.com> wrote in
message
> <fq49s2$eup$1@fred.mathworks.com>...
> > Hello,
> > I have displayed images in GUI using AXES....
> > The problem that is coming is when i am displaying the
> > image along with that the path(From where the image
was
> > read) of the image also gets printed above the
image....
> > I dont want the the path to be printed can anyone help
in
> > this....
>
> i am not sure what, exactly, is going on in your code.
if
> you could post your code, it might help. short of that,
> maybe you can simply have no text displayed above your
image
> if you add this to your code:
>
> title([]);
>
> this just sets the title string to an empty vector, so
> nothing will be displayed there.
>
> hth,
> bryan


Hiee Bryan,
I am attaching a small piece of code for where i dont want
the image name to be displayed.....

path='C:\StorageTemp\tempBMPFile\deepika2.bmp';
h1=subplot('Position',[0.49 0.63 0.1 0.16]);
a=char(path)
imshow(a);
.........................

Subject: Re: Image name........ imshow()

From: Alessandro Mura

Date: 29 Feb, 2008 11:00:04

Message: 4 of 7


> path='C:\StorageTemp\tempBMPFile\deepika2.bmp';
> h1=subplot('Position',[0.49 0.63 0.1 0.16]);
> a=char(path)
> imshow(a);
> .........................
>

you may want to load the image separately
and then you can show it
im=imread(path_to_image_file)
imshow(im)

Ciao

Alessandro Mura

Subject: Re: Image name........ imshow()

From: ImageAnalyst

Date: 29 Feb, 2008 21:56:47

Message: 5 of 7

On Feb 29, 5:04=A0am, "Mamata Kukreja" <mamata_kukr...@yahoo.com> wrote:
> "Bryan " <cssm...@gmail.com> wrote in message <fq4ake$rk2
>
> $...@fred.mathworks.com>...
>
>
>
>
>
> > "Mamata Kukreja" <mamata_kukr...@yahoo.com> wrote in
> message
> > <fq49s2$eu...@fred.mathworks.com>...
> > > Hello,
> > > I have displayed images in GUI using AXES....
> > > The problem that is coming is when i am displaying the
> > > image along with that the path(From where the image
> was
> > > read) of the image also gets printed above the
> image....
> > > I dont want the the path to be printed can anyone help
> in
> > > this....
>
> > i am not sure what, exactly, is going on in your code. =A0
> if
> > you could post your code, it might help. =A0short of that,
> > maybe you can simply have no text displayed above your
> image
> > if you add this to your code:
>
> > title([]);
>
> > this just sets the title string to an empty vector, so
> > nothing will be displayed there.
>
> > hth,
> > bryan
>
> Hiee Bryan,
> I am attaching a small piece of code for where i dont want
> the image name to be displayed.....
>
> path=3D'C:\StorageTemp\tempBMPFile\deepika2.bmp';
> h1=3Dsubplot('Position',[0.49 0.63 0.1 0.16]);
> a=3Dchar(path)
> imshow(a);
> .........................- Hide quoted text -
>
> - Show quoted text -

How about just:

fullImageFileName =3D 'C:\StorageTemp\tempBMPFile\deepika2.bmp';
imageArray =3D imshow(fullImageFileName, []);
% Set a static text label above the axes with the filename if you wish
set(handles.txtFileName, 'string', fullImageFileName );

Regards,
ImageAnalyst

Subject: Re: Image name........ imshow()

From: Vihang Patil

Date: 01 Mar, 2008 15:31:06

Message: 6 of 7

"Mamata Kukreja" <mamata_kukreja@yahoo.com> wrote in
message <fq8laj$r6e$1@fred.mathworks.com>...

>
>
> Hiee Bryan,
> I am attaching a small piece of code for where i dont
want
> the image name to be displayed.....
>
> path='C:\StorageTemp\tempBMPFile\deepika2.bmp';
> h1=subplot('Position',[0.49 0.63 0.1 0.16]);
> a=char(path)
> imshow(a);
> .........................
>


Your code doesnt show any path name on my version. But if
it does on your version, you might want to try out this

path='C:\StorageTemp\tempBMPFile\deepika2.bmp';
h1=subplot('Position',[0.49 0.63 0.1 0.16]);
a=imread(path);
imshow(a);

HTH
Vihang

Subject: Re: Image name........ imshow()

From: ImageAnalyst

Date: 01 Mar, 2008 17:14:52

Message: 7 of 7

On Feb 29, 4:56=A0pm, ImageAnalyst <imageanal...@mailinator.com> wrote:
> On Feb 29, 5:04=A0am, "Mamata Kukreja" <mamata_kukr...@yahoo.com> wrote:
>
>
>
>
>
> > "Bryan " <cssm...@gmail.com> wrote in message <fq4ake$rk2
>
> > $...@fred.mathworks.com>...
>
> > > "Mamata Kukreja" <mamata_kukr...@yahoo.com> wrote in
> > message
> > > <fq49s2$eu...@fred.mathworks.com>...
> > > > Hello,
> > > > I have displayed images in GUI using AXES....
> > > > The problem that is coming is when i am displaying the
> > > > image along with that the path(From where the image
> > was
> > > > read) of the image also gets printed above the
> > image....
> > > > I dont want the the path to be printed can anyone help
> > in
> > > > this....
>
> > > i am not sure what, exactly, is going on in your code. =A0
> > if
> > > you could post your code, it might help. =A0short of that,
> > > maybe you can simply have no text displayed above your
> > image
> > > if you add this to your code:
>
> > > title([]);
>
> > > this just sets the title string to an empty vector, so
> > > nothing will be displayed there.
>
> > > hth,
> > > bryan
>
> > Hiee Bryan,
> > I am attaching a small piece of code for where i dont want
> > the image name to be displayed.....
>
> > path=3D'C:\StorageTemp\tempBMPFile\deepika2.bmp';
> > h1=3Dsubplot('Position',[0.49 0.63 0.1 0.16]);
> > a=3Dchar(path)
> > imshow(a);
> > .........................- Hide quoted text -
>
> > - Show quoted text -
>
> How about just:
>
> fullImageFileName =3D 'C:\StorageTemp\tempBMPFile\deepika2.bmp';
> imageArray =3D imshow(fullImageFileName, []);
> % Set a static text label above the axes with the filename if you wish
> set(handles.txtFileName, 'string', fullImageFileName );
>
> Regards,
> ImageAnalyst- Hide quoted text -
>
> - Show quoted text -

Sorry - forgot the imread - should have been:

fullImageFileName =3D 'C:\StorageTemp\tempBMPFile\deepika2.bmp';
imageArray =3D imread(fullImageFileName);
imshow(imageArray , []);
% Set a static text label above the axes with the filename if you wish
set(handles.txtFileName, 'string', fullImageFileName );

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
title Bryan 27 Feb, 2008 13:40:31
imread Bryan 27 Feb, 2008 13:40:31
axes Bryan 27 Feb, 2008 13:40:31
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