Thread Subject: Showing Image In Its Original Size - Using Image Command Only

Subject: Showing Image In Its Original Size - Using Image Command Only

From: Royi Avital

Date: 21 Nov, 2009 15:54:01

Message: 1 of 6

Hello.
I was wondering, how can I show an image in it original size (Pixel in the image means pixel on screen) using only "Image" command.

For simplicity for whoever wanna suggest a code, let's assume the image is 256 on 256 gray, 8 bit.

Thanks.

Subject: Showing Image In Its Original Size - Using Image Command Only

From: Royi Avital

Date: 21 Nov, 2009 21:12:07

Message: 2 of 6

"Royi Avital" <RoyiREMOVEAvital@yahoo.com> wrote in message <he92ep$7vh$1@fred.mathworks.com>...
> Hello.
> I was wondering, how can I show an image in it original size (Pixel in the image means pixel on screen) using only "Image" command.
>
> For simplicity for whoever wanna suggest a code, let's assume the image is 256 on 256 gray, 8 bit.
>
> Thanks.

Anyone?

I couldn't find it anywhere on the command help.
I know it's easy to do with "imshow" yet how can it be done using image command?

Thanks.

Subject: Showing Image In Its Original Size - Using Image Command Only

From: Jan Simon

Date: 22 Nov, 2009 12:05:25

Message: 3 of 6

Dear Royi!

> I was wondering, how can I show an image in it original size (Pixel in the image means pixel on screen) using only "Image" command.
>
> For simplicity for whoever wanna suggest a code, let's assume the image is 256 on 256 gray, 8 bit.

I think, it is not possible with just IMAGE. You have to call AXES before to create an axis with the wanted size in pixels and matching X and Y-limits.

Kind regards, Jan

Subject: Showing Image In Its Original Size - Using Image Command Only

From: Royi Avital

Date: 22 Nov, 2009 20:31:07

Message: 4 of 6

"Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message <heb9e5$q5u$1@fred.mathworks.com>...
> Dear Royi!
>
> > I was wondering, how can I show an image in it original size (Pixel in the image means pixel on screen) using only "Image" command.
> >
> > For simplicity for whoever wanna suggest a code, let's assume the image is 256 on 256 gray, 8 bit.
>
> I think, it is not possible with just IMAGE. You have to call AXES before to create an axis with the wanted size in pixels and matching X and Y-limits.
>
> Kind regards, Jan

Could you elaborate on this or even give me a sample code?

Thanks.

Subject: Showing Image In Its Original Size - Using Image Command Only

From: Jan Simon

Date: 22 Nov, 2009 21:44:10

Message: 5 of 6

Dear Royi!

> > > For simplicity for whoever wanna suggest a code, let's assume the image is 256 on 256 gray, 8 bit.
> >
> > I think, it is not possible with just IMAGE. You have to call AXES before to create an axis with the wanted size in pixels and matching X and Y-limits.
>
> Could you elaborate on this or even give me a sample code?

Have you tried it? Jan

Subject: Showing Image In Its Original Size - Using Image Command Only

From: ImageAnalyst

Date: 23 Nov, 2009 02:15:20

Message: 6 of 6

On Nov 22, 3:31 pm, "Royi Avital" <RoyiREMOVEAvi...@yahoo.com> wrote:
> Could you elaborate on this or even give me a sample code?
>
> Thanks.
------------------------
I couldn't see any way to do it either. Like Jan said I think you
have to do it "manually." And you can experiment with the different
axes and figure properties just as well as we can.

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
graphics Matt J 21 Nov, 2009 17:07:36
image Royi Avital 21 Nov, 2009 10:54:03
rssFeed for this Thread

Contact us at files@mathworks.com