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

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