convertion rgb image blue channel image
5 次查看(过去 30 天)
显示 更早的评论
how i get a blue channel image from a rgb image ?
0 个评论
采纳的回答
Image Analyst
2015-1-15
See this snippet:
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
% To recombine separate color channels into a single, true color RGB image.
rgbImage = cat(3, redChannel, greenChannel, blueChannel);
0 个评论
更多回答(1 个)
Fahim
2016-5-17
can I ask a question here ? how can we extract the pixel of blue channel? i want to embed an image exactly to blue Channel.so I need extract the pixel of blue channel as an array .
1 个评论
Image Analyst
2016-5-17
I answered it above. Again:
blueChannel = rgbImage(:, :, 3);
If you still need help, start a new question and attach your image.
另请参阅
类别
在 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!