📄 loadpop.m
字号:
function X = loadpop(fileformat)
% X = makepop(fileformat)
%
% Function that creates the the population matrix X
% whre each collum is a image of the database.
% The currend directory have to be the image database's directory
d=0;
list=dir;
for c = 3:length(list),
lname = length(list(c).name);
if list(c).name(lname-2:lname) == fileformat,
d=d+1;
[img,map] = imread(list(c).name,fileformat);
X(:,d) = img(:);
end
end
X=double(X);
return
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -