Borrar filtros
Borrar filtros

illumination problem in face detection application

1 visualización (últimos 30 días)
selim
selim el 5 de Jul. de 2012
Hello everyone,
I am dealing with face detection. I have a question.
1) I can change the brightness of an image adding a number. (I=I+50;)
How can I learn or calculate the level of illumination,brightness so that I can add or subtract some values and the image can get suitable for my parameters?
Am I supposed to calculate mean of absolute? What do you suggest?
Thanks in advance.

Respuesta aceptada

Image Analyst
Image Analyst el 5 de Jul. de 2012
You can get the "brightness" of each color channel by (optionally) extracting the color channels:
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
To get the brightness for a particular pixel, for example at row 2, column 42, you can just reference it:
redValue = redChannel(2, 42);
greenValue = greenChannel (2, 42);
blueValue = blueChannel (2, 42);
Or just use the original rgb image:
redValue = rgbImage(2, 42, 1);
greenValue = rgbImage(2, 42, 2);
blueValue = rgbImage(2, 42, 3);
  2 comentarios
selim
selim el 10 de Jul. de 2012
so is this command below ok to understand brightness?
mean_of_rgbImage = mean2(rgb2gray(rgbImage))
Image Analyst
Image Analyst el 10 de Jul. de 2012
That could do the job for you.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Feature Detection and Extraction en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by