1つのFigure上​に複数の画像を表示し​た際、別々のカラーマ​ップで表示することは​できますか?

10 views (last 30 days)
MathWorks Support Team
MathWorks Support Team on 25 Oct 2013
1つのFigure上に複数の画像を表示した際、別々のカラーマップで表示することはできますか?

Accepted Answer

MathWorks Support Team
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)

More Answers (0)

Products


Release

R14SP2

Community Treasure Hunt

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

Start Hunting!