subimage
此函式的功能是在一个图形上显示多个图像。
函式简介
函式功能:使多个图像同时显示在一个界面上。
在matlab命令视窗中输入: doc subimage或者help subimage即可获得该函式的帮助信息, 键入type subimage可以查看函式的实现代码。
随用方式:
subimage(X, map)
显示索引图像X,以及map
subimage(I)
subimage(I)
在当前的坐标轴显示强度图像I。
subimage(BW)
subimage(BW)
在当前的坐标轴显示二值图像BW。
subimage(RGB)
subimage(RGB)
在当前的坐标轴显示真彩色图像RGB
subimage(x, y...)
h = subimage(...)
subimage(x, y...)
h = subimage(...)
程式实例:
load trees
[X2,map2] = imread('forest.tif');
subplot(1,2,1), subimage(X,map)
subplot(1,2,2), subimage(X2,map2)