Operation on RGB Images
1 次查看(过去 30 天)
显示 更早的评论
I have applied the security algo on Grayscale images which were converted to Grayscale from RGB.Now if want to operation directly on RGB image How can I separate the R,G & B components & merge at the end.
Thanks
0 个评论
采纳的回答
Pugazhendhi
2012-2-1
The following steps will help you split RGB and merge them again.
I = imread('RGB.jpg');
%RGB split
R=I(:,:,1);
G=I(:,:,2);
B=I(:,:,3);
%merge RGB channels
RGB1=cat(3,R,G,B);
0 个评论
更多回答(1 个)
Sukuchha
2012-2-1
read your image with imread and extract RGB with indexing.
I= imread('your_pic')
R = I(:,:,1);
G = I(:,:,2);
B= I(:,:,3);
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!