⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loadimages.m

📁 这是用matlab编写人脸检测软件
💻 M
字号:
% Author: Scott Sanner
% Email:  ssanner@cs.stanford.edu
% Course: CS223B, Winter
% Desc:   Loads a set of images into an array given
%         a prefix, suffix, and highest index filename.
%
function IM = loadimages(directory, prefix, suffix,SCALE)

% cd IM this directory
old_dir=pwd;
cd(directory);

% fIMd all matched filenames
dirinfo = dir([prefix,'*.',suffix]);
found = {dirinfo.name};


% Load the image set
for i = 1:size(found,2),
    if suffix=='pgm'
        IM{i} = double(pgmRead(found{i}));
    else
        IM{i} = double(imread(found{i}));
    end
end

res = IM;

clear found

% cd out 
cd(old_dir);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -