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

📄 use_hlf.m

📁 关于人脸识别的一个VC程序
💻 M
字号:
function out_image = use_hlf(im, filter, thresh)
% im     - IxJ input image
% filter - WxHxN where wW and H are the width and height of the filters and N is the number of filters
% thresh - N vectors containing the thresholds

nb = size(filter,3);
out_image(1:size(im,1), 1:size(im,2), 1:nb) = NaN;

[out_image(:,:,1), patches] = filter2_ortho_first(filter(:,:,1), im);
out_image(:,:,1) = out_image(:,:,1) - thresh(1);

for i=2:nb
   fprintf('pass %d, retaining %.2f pixels\n', i, sum(sum(out_image(:,:,i-1) > 0)));
   [out_image(:,:,i), patches] = filter2_ortho(filter(:,:,i), patches, filter(:,:,i-1), (out_image(:,:,i-1) > 0));
   out_image(:,:,i) = out_image(:,:,i) - thresh(i);
end

⌨️ 快捷键说明

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