Measuring the luminosity of a picture?

13 vues (au cours des 30 derniers jours)
Nathan
Nathan le 8 Sep 2014
Modifié(e) : Stephen23 le 11 Fév 2025
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 commentaire
Stephen23
Stephen23 le 10 Fév 2025
"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

Connectez-vous pour commenter.

Réponses (1)

Gautam
Gautam le 10 Fév 2025
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 commentaire
Stephen23
Stephen23 le 10 Fév 2025
Modifié(e) : Stephen23 le 11 Fév 2025
"The L* channel represents the lightness or luminosity of the image."
Can you provide any reputable reference that states that L* represents luminosity?

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by