RGB画像の作成方法

3 次查看(过去 30 天)
wataru yoshimi
wataru yoshimi 2017-1-20
3つのSAR画像をそれぞれ赤、青、緑色で重ねて表示をしたのですがやり方がわかりません。 以下のコードは試したのですがうまくいきませんでした
% code
RGB=zeros(27583:22791:3);
RGB(:,:,1)=(RE0418);
RGB(:,:,2)=(RE0502);
RGB(:,:,3)=(RE0516);
figure;
imagesc(RGB);

采纳的回答

Tohru Kikawada
Tohru Kikawada 2017-1-20
imagesc はグレイスケール画像に色づけして表示するためのコマンドです。
代わりに imshow をお使いください。
RGB=zeros(27583,22791,3);
RGB(:,:,1)=RE0418;
RGB(:,:,2)=RE0502;
RGB(:,:,3)=RE0516;
figure;
imshow(RGB);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Language Fundamentals 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by