Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: creating rgb image using pixels values

$
0
0
Hi Shobana,

How about the following:

% Assuming you have three matrices R, G and B
I = uint8(zeros([size(R) 3]));
I(:,:,1) = R;
I(:,:,2) = G;
I(:,:,3) = B;

imwrite(I,'Combined.png');

Best.

Viewing all articles
Browse latest Browse all 19628