find luminance vector in an image
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Colormaps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!