📄 load_subimages_dataset.m
字号:
function S = load_subimages_dataset(name,nbr,options)
% load_subimages_dataset - create a dataset of subimages.
%
% S = load_subimages_dataset(name,nbr,options);
% or
% S = load_subimages_dataset(M,nbr,options);
%
% S(:,:,i) is the ith sub-image of size options.dim of the full image M
% (or loaded from given name).
%
% M is an image.
% name is a valid image name (eg. 'lena' or 'barb' if barb.gif or lena.png are in the path)
% nbr is the number of images loaded
% options.dim is the size of the extracted small squares
% options.sampling is either 'rand' or 'uniform'.
%
% Copyright (c) 2005 Gabriel Peyr
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -