vlad-vector

Extracting VLAD from SIFT Descriptors in VLFeat with Matlab

无人久伴 提交于 2019-12-06 11:45:59
问题 I have a folder of images. I want to compute VLAD features from each image. I loop over each image, load it, and obtain the SIFT descriptors as follows: repo = '/media/data/images/'; filelist = dir([repo '*.jpg']); sift_descr = {} for i = 1:size(filelist, 1) I = imread([repo filelist(i).name]) ; I = single(rgb2gray(I)) ; [f,d] = vl_sift(I) ; sift_descr{i} = d end However, VLAD requires the matrix of descriptors to be 2D. See here. What is the correct way to process my SIFT descriptors, before

Extracting VLAD from SIFT Descriptors in VLFeat with Matlab

拥有回忆 提交于 2019-12-04 16:46:06
I have a folder of images. I want to compute VLAD features from each image. I loop over each image, load it, and obtain the SIFT descriptors as follows: repo = '/media/data/images/'; filelist = dir([repo '*.jpg']); sift_descr = {} for i = 1:size(filelist, 1) I = imread([repo filelist(i).name]) ; I = single(rgb2gray(I)) ; [f,d] = vl_sift(I) ; sift_descr{i} = d end However, VLAD requires the matrix of descriptors to be 2D. See here . What is the correct way to process my SIFT descriptors, before VLAD encoding? Thank you. First, you need to obtain a dictionary of visual words, or to be more