find luminance vector in an image

2 visualizaciones (últimos 30 días)
Anusha
Anusha el 19 de Oct. de 2013
Editada: Azzi Abdelmalek el 19 de Oct. de 2013
yi = 0.299ri +0.587gi +0.114bi i=1,2,.M
Let Y the luminance vector computed starting from the palette P of the image
I.
Palette consist of RGB value...
What is the matlab code to find Yi value

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 19 de Oct. de 2013
Editada: Azzi Abdelmalek el 19 de Oct. de 2013
If Im is your nxmx3 rgb image
yi=Im(:,:,1)*0.299+Im(:,:,2)*0.587+Im(:,:,3)*0.114
  1 comentario
Anusha
Anusha el 19 de Oct. de 2013
This RGB is a colormap of an image?

Iniciar sesión para comentar.

Más respuestas (1)

Walter Roberson
Walter Roberson el 19 de Oct. de 2013
Y = 0.299 * R + 0.587 * G + 0.114 * B
where R, G, B are the vectors or arrays of R, G, and B values.

Categorías

Más información sobre Colormaps 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