Measuring the luminosity of a picture?

조회 수: 2 (최근 30일)
Nathan
Nathan 2014년 9월 8일
편집: Stephen23 2025년 2월 11일
Hi, I have to measure the luminosity of a picture using the l,a,b parameters, so I can compare the luminosity of several pictures. How would I go about to achieve this?
  댓글 수: 1
Stephen23
Stephen23 2025년 2월 10일
"Measuring the luminosity of a picture?"
Luminosity an absolute measure of radiated electromagnetic energy per unit time, so unless you know something about the duration of the exposure in addition to some kind of calibration of the image scale, this is likely impossible.
What is much more likely is that you are mixing up luminosity with lightness: https://en.wikipedia.org/wiki/Lightness

댓글을 달려면 로그인하십시오.

답변 (1개)

Gautam
Gautam 2025년 2월 10일
Hi Nathan,
You can use the Image Processing Toolbox, which provides functions for color space conversion. You can follow these steps to compare the luminosity of the pictures:
  1. Use "imread" to load the image into MATLAB.
  2. Use "rgb2lab" to convert the image from RGB to L*a*b* color space. The L* channel represents the lightness or luminosity of the image.
  3. Compute the mean or other statistical measures of the L* channel to quantify the luminosity.
  4. Use the calculated statistics to compare luminosity across different images.
You can also consider normalizing the L* values if images have different ranges or lighting conditions.
Refer to the following links for more infromation on these functions
  1. imread: https://www.mathworks.com/help/matlab/ref/imread.html
  2. rgb2lab: https://www.mathworks.com/help/images/ref/rgb2lab.html?searchHighlight=rgb2lab&s_tid=srchtitle_support_results_1_rgb2lab
  댓글 수: 1
Stephen23
Stephen23 2025년 2월 10일
편집: Stephen23 2025년 2월 11일
"The L* channel represents the lightness or luminosity of the image."
Can you provide any reputable reference that states that L* represents luminosity?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by