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.
No products are associated with this question.
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)
0 Comments