How to obtain sum of RGB color values of a pixel?
显示 更早的评论
How to obtain sum of RGB color values of a pixel?
Without using I(:,:,1) ,I(:,:,2),I(:,:,3).
1 个评论
It is important to note that the sum of the R, G, and B values is not the same as the grayscale! This is because each of the R, G, and B values contribute unequally to the luminance, so they cannot be simply summed to get the grayscale equivalent of a color pixel. If you want the grayscale value, then the easiest way is to use rgb2gray.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Modify Image Colors 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!