RGB画像の作成方法

5 ビュー (過去 30 日間)
wataru yoshimi
wataru yoshimi 2017 年 1 月 20 日
回答済み: Tohru Kikawada 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 Center および File ExchangeLanguage Fundamentals についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by