How Can I merge R,G,B Components of an image into a single RGB image ?

2 ビュー (過去 30 日間)
Omkar Bhanap
Omkar Bhanap 2018 年 2 月 21 日
コメント済み: Omkar Bhanap 2018 年 2 月 23 日
I am using 'V4L2 Video Capture' block for interfacing my Raspberrypi Camera with my laptop. I need a single multidimensional signal instead of three separate R, G, B components. Please suggest me any solution for this. It should be compatible with code generation. Thanks in advance.
  1 件のコメント
Omkar Bhanap
Omkar Bhanap 2018 年 2 月 21 日
I also tried 'cat', but it was giving me errors while using code generation.

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

回答 (1 件)

KSSV
KSSV 2018 年 2 月 21 日
R= rand(200) ;
G = rand(200) ;
B = rand(200) ;
I = cat(3,R,G,B) ;
imshow(I)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by