Thread Subject: Why are image pixels in matlab normalized to [0,1]?

Subject: Why are image pixels in matlab normalized to [0,1]?

From: Pat Finder

Date: 27 Jul, 2009 18:06:02

Message: 1 of 2

Someone asked me recently,
"Why does matlab normalize pixels to [0,1]?"

I realize it doesn't always, but when you convert it to a double image, it does.

I suspect that this has to do with the accuracy of the values in the double.
Is it because half of the double values are above 1.0 and half are below?

Thanks

Subject: Why are image pixels in matlab normalized to [0,1]?

From: Doug Schwarz

Date: 27 Jul, 2009 18:46:59

Message: 2 of 2

In article <h4kqaa$k8d$1@fred.mathworks.com>,
 "Pat Finder" <pfinder@netacc.net> wrote:

> Someone asked me recently,
> "Why does matlab normalize pixels to [0,1]?"
>
> I realize it doesn't always, but when you convert it to a double image, it
> does.
>
> I suspect that this has to do with the accuracy of the values in the double.
> Is it because half of the double values are above 1.0 and half are below?
>
> Thanks


Hi "Pat",

It's just a convention based on the fact that MATLAB's preferred data
type is double -- nothing more.

--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.

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
pixel represent... Pat Finder 27 Jul, 2009 14:09:04
rssFeed for this Thread

Contact us at files@mathworks.com