What does the output of imread represent?
Show older comments
Hey Everyone,
I want to read an image for further processing. So when I write for example (I = imread('rice.png');), the output matrix I holds the values for each pixel in the image. What can we assume the unit of these? So I can say that the output read for each pixel resembles the output of photodiode?
Thanks a lot in advance.
Accepted Answer
More Answers (1)
Image Analyst
on 7 Nov 2015
0 votes
For your intents and purposes, just assume the values of the badly-named I of the "rice" image are a generic "intensity" value with units of "gray levels". Actually the units are units of energy (and I've derived that before) but you don't need to worry about it. This is not true for all images. Other images can have units of temperature, height, density, chemical activity, mass, atomic weight, etc.
Sounds like you're just getting started with image processing so you'll want to go over my Image Segmentation Tutorial: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
By the way, I looks too much like 1 (one) and l (lower case L), so I strongly advise you to write readable and maintainable code and use descriptive variable names. No one likes to review pages and pages of code that looks like an alphabet soup of single letter variable names with no comments.
1 Comment
Yasmin Tamimi
on 28 Mar 2016
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!