RGB to Grayscale Conversion
1 次查看(过去 30 天)
显示 更早的评论
I know that the conversion from RGB to grayscale is based on the wighted average method as shown in the following equation:
gray = .299*redChannel + .587*greenChannel + .114*blueChannel
What I need to know is the math behind this equation and the coefficients.
Thank you for the help.
2 个评论
Image Analyst
2018-1-16
What do you mean? That is the math. Do you mean you want to know how the coefficients were arrived at?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Mathematics and Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!