?? do_phowdescriptor.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 + -