How weights are assigned to each RGB component in function rgb2gray

조회 수: 4 (최근 30일)
Avinash Mahat
Avinash Mahat 2013년 3월 19일
In function rgb2gray, Gray=0.299*R + 0.587*G + 0.114*B, i understand it is a standard formula but can anyone help me understanding on how the weights for each channel are computed?
  댓글 수: 1
Jing
Jing 2013년 3월 19일
What do you mean by channel? Do you mean the 'R', 'G' or 'B' component? That's explained in color theory or color model. If you're interested, try to search that.

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

답변 (1개)

Image Analyst
Image Analyst 2013년 3월 19일
It comes from the luminous efficacy curve. See http://en.wikipedia.org/wiki/Luminous_efficacy

카테고리

Help CenterFile Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by