find luminance vector in an image

조회 수: 2 (최근 30일)
Anusha
Anusha 2013년 10월 19일
편집: Azzi Abdelmalek 2013년 10월 19일
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

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 10월 19일
편집: Azzi Abdelmalek 2013년 10월 19일
If Im is your nxmx3 rgb image
yi=Im(:,:,1)*0.299+Im(:,:,2)*0.587+Im(:,:,3)*0.114
  댓글 수: 1
Anusha
Anusha 2013년 10월 19일
This RGB is a colormap of an image?

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

추가 답변 (1개)

Walter Roberson
Walter Roberson 2013년 10월 19일
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.

카테고리

Help CenterFile Exchange에서 Colormaps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by