How to convert red channel of a rgb image to grayscale image?
7 次查看(过去 30 天)
显示 更早的评论
I have some rgb images. I want to know is there any way to only convert the red channel of them to grayscale?
0 个评论
采纳的回答
Image Analyst
2018-5-25
Yes. Very easy:
redChannel = rgbImage(:, :, 1); % Extract the red channel only into a gray scale image.
3 个评论
Image Analyst
2018-5-25
That is a bad explanation and they should know better. When you extract the red channel, it is already a grayscale image at that point -- there is no need for a second step of converting it to a gray scale image.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modify Image Colors 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!