Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to ask about the concepet of these terms because I needed to understand the image processing :
1) Gray level 2) intensity

I searched before I asked here and I got the gray level is the intensity of each a pixel in the image , and the intensity =L-1 (L is # of gray level)


Is it right? I need more explain about these confusing terms.

Thank you for ur help
Posted

Have a look at Color space[^]

Like mathematics, Gray level & intensity are human inventions - in nature there is no such thing as a Gray level or intensity - at least not in the sense we're used to speak about it when it comes to image processing. A color space as described by the article defines what is meant by the various values used to describe a color.

Best regards
Espen Harlinn
 
Share this answer
 
v2
Comments
dedoooo 7-Nov-11 11:26am    
I read it and I did n't get the idea about that two terms:(
Mehdi Gholam 7-Nov-11 11:42am    
5'ed
Espen Harlinn 7-Nov-11 15:13pm    
Thank you, Mehdi!
Sergey Alexandrovich Kryukov 7-Nov-11 11:43am    
Good place to look at, my 5.
--SA
Espen Harlinn 7-Nov-11 15:13pm    
Thank you, Sergey!
They are essentially the same thing, as they are describing the same quantity in the context of a gray scale image.

Namely the value for 0 to n of the value of that pixel (n usually is 255).
 
Share this answer
 
Comments
RaisKazi 8-Nov-11 3:44am    
5ed. :)
Mehdi Gholam 8-Nov-11 3:53am    
Thanks
There is no such strict term as "intensity" in optics, photometry or image processing. (People working in this area and using this term, dont's rush to object!) There is a fuzzy jargon usage of the word when no quantitative measure is important; something which is "the lighter, the more". Gray-scale image pixel value is measured by some unsigned integer value, usually 8-bit or 16-bit; an alpha channel can be added (transparency).

If you explain what measure you want to need for what purpose, I would probably be able to advise what to use.

[EDIT]

Answering the question after clarification. "Histogram equalization" is explained here: http://en.wikipedia.org/wiki/Histogram_equalization[^]. This is required explanation of gray-scale image: http://en.wikipedia.org/wiki/Grayscale[^].

Unlike pretty complex color case, histogram equalization in gray scale is fairly simple transformation, because the image is, well… gray-scale. In the article about histogram equalization referenced above "intensity" is used in non-strict sense in the very beginning but real calculations are done using "pixel value", as well as "number of gray levels". Most gray-scale images have 8-bit or 16-bit pixel values, maximum number of gray levels will be 0xFF + 1 = 0x100 = 256 or 0xFFFF + 1 = 0x10000 = 65536, and pixel values 0 to 0xFF or 0 to 0xFFFF, respectively, 0 for black color and maximum value (0xFF or 0xFFFF) for white color. The histogram equalization will transform the image to the distribution when the darkest pixel gets the value exactly 0, and the lightest pixel gets the value exactly of the maximum, 0xFF or 0xFFFF.

This is the MathWorks article with illustrations: http://www.mathworks.com/help/toolbox/images/ref/histeq.html[^], as far as I can see — "in simple words". :-)

Thank you,
—SA
 
Share this answer
 
v2
Comments
dedoooo 7-Nov-11 12:03pm    
I 'm a beginner in image processing at all.Now I start deal with simple operations in MATLAB.I faced a big problem when I coded some topics such as histogram equalization which is need mors and more understand about the pixels and intensity. So, please any one can explain what I need in a simple words and thank you
Sergey Alexandrovich Kryukov 7-Nov-11 15:12pm    
OK, not it's more clear; please see the updated solution, after [EDIT].
--SA
Espen Harlinn 7-Nov-11 15:12pm    
Perhaps what I needed to add, thanks and my 5
Sergey Alexandrovich Kryukov 7-Nov-11 15:13pm    
I voted 5 for your answer anyway.
I don't know if you saw my update in response to OP's clarification.
Thank you, Espen.
--SA
Espen Harlinn 7-Nov-11 15:24pm    
I did now - good work :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900