最近写实验报告,想多插入几个图,因为涉及到很多图片,为了介绍这个小数据集,想将所有图片放在一起列出来,所以自己写了一个标准化的小函数,如有帮助那就最好,也希望大家多多指正。
效果:
function Result = listimage(path, picsize, row_num)
%show all the images
%3-channel images
%Input:
% path:the path of the image
% picsize:the picsize of image to be shown in the result default = [100 100]
% row_num:the num of each row default = 10
%Output:
% Result:the result image
%Author:
% 卍KID
%Time:
% 2014.3.16(SZU)
if nargin == 1
picsize = [100 ,100];
row_num = 10;
end
if nargin == 2
row_num = 10;
end
ext = {'*.jpe