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

📄 do_phowdescriptor.m

📁 phow is the code for extracting pyramid features from image
💻 M
字号:
function do_bag_of_words(par)

comanda = sprintf('mkdir %s',par.directoriPHOW);
unix(comanda);

path = sprintf('%s*.jpg',par.directoriImatges);
imatges = dir(path);
                
for index=1:size(imatges,1)
    s = sprintf('%s%s',par.directoriImatges,imatges(index).name);
    I = imread(s);
    
    file = sprintf('%s%s.mat',par.directoriBoW,imatges(index).name);
    load(file);
    
    roi = [1;size(I,1);1;size(I,2)];%change this if you want to use a ROI instead of the whole image
    wf_roi = wf(roi(1,1):roi(2,1),roi(3,1):roi(4,1));
    phow = vgg_phow(wf_roi,par.L,par.VSize);
end

⌨️ 快捷键说明

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