フィルターのクリア

How to combine this R, G, B values of an image so that i have an image?

1 回表示 (過去 30 日間)
KARTHICK
KARTHICK 2013 年 2 月 15 日
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.

採用された回答

José-Luis
José-Luis 2013 年 2 月 15 日
your_image = cat(3,R,G,B);
  1 件のコメント
KARTHICK
KARTHICK 2013 年 2 月 15 日
編集済み: KARTHICK 2013 年 2 月 15 日
Thank You :-)

サインインしてコメントする。

その他の回答 (1 件)

the cyclist
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!

Translated by