1. montage:同时显示多个图像
thumbnails = train_x(:, :, :, 1:100);
thumbnails = imresize(thumbnails, [64, 64]);
montage(thumbnails)
- montage(I) displays all the frames of a multiframe image array I in a single image object. :将多帧图像序列 I (无论单帧图像是灰度还是彩色的,传入的参数 I 必须是 4 维俱珍)的全部图像帧,在一个单独的图像对象中;
- I(传入的参数 I) can be a sequence of binary, grayscale, or truecolor images.
- A binary or grayscale image sequence must be an M-by-N-by-1-by-K array.:灰度图像,第三维是 1,K 表示灰度图像的个数;
- A truecolor image sequence must be an M-by-N-by-3-by-K array:彩色图像,K 代表灰度图像的个数;
- I(传入的参数 I) can be a sequence of binary, grayscale, or truecolor images.
2. insertObjectAnnotation:在图像中插入形状和文本
RGB = insertObjectAnnotation(I,shape,position,label,Name,Value)
3. insertMaker
RGB = insertMarker(I,position,marker)
maker 的映射信息主要有下:
- ‘o’:’circle’
- ‘x’:’x-mark’
- ‘+’:’plus’
- ‘*’:’star’
- ’s’:’square’