How to combine this R, G, B values of an image so that i have an image?
1 次查看(过去 30 天)
显示 更早的评论
I have R,G,B values of an image separately. I need it as a single image.Can anyone tell how to put these values in a single matrix, so that i have a single image.
0 个评论
采纳的回答
更多回答(1 个)
the cyclist
2013-2-15
编辑:the cyclist
2013-2-15
Assuming your R,G,B values are MxN arrays, then you need to stack them into an MxNx3 array.
You can do this with the cat() command:
>> RGB = cat(3,R,G,B);
You can display the resulting array with the image() command
>> image(RGB)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!