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:
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: 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: 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: 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: 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: Image name........ imshow()

From: Vihang Patil

Date: 1 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: Image name........ imshow()

From: ImageAnalyst

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

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