The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: creating rgb image using pixels values
Replies: 3   Last Post: Dec 29, 2012 11:48 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 13
Registered: 12/20/12
Re: creating rgb image using pixels values
Posted: Dec 29, 2012 10:48 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Sadik " <> wrote in message <kbo6vn$2jk$>...
> 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.

Thank you so much i got correct image

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.