File size: 275 Bytes
d4035c1
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
function words = vggQuantize(vocab, descrs)
% VGGQUANTIZE  Quantize bag-of-words features
%
%  Author:: Andrea Vedaldi

if ~isa(vocab, 'double') ; vocab = double(vocab) ; end
if ~isa(descrs, 'double') ; descrs = double(descrs) ; end

words = MEXfindnearestl2(descrs, vocab);