1つのFigure上に複数の画像を表示した際、別々のカラーマップで表示することはできますか?
10 views (last 30 days)
Show older comments
MathWorks Support Team
on 25 Oct 2013
Answered: MathWorks Support Team
on 25 Oct 2013
1つのFigure上に複数の画像を表示した際、別々のカラーマップで表示することはできますか?
Accepted Answer
MathWorks Support Team
on 25 Oct 2013
通常、カラーマップは1つのFigureに対して1つしか設定できませんが、Image Processing Toolboxをお持ちであれば、subimage関数を利用して、異なるカラーマップで画像を表示することができます。
subimage関数は各イメージ(インデックス付きイメージ、強度イメージ、バイナリイメージ)をRGBイメージに変換します。
以下にsubimage関数の使用例を挙げます。
load clown
% 別カラーマップの作成
map2 = gray(64);
subplot(1,2,1)
subimage(X,map)
subplot(1,2,2)
subimage(X,map2)
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!