visual-search/distance/compareMahalanobis.m
2019-11-30 17:56:27 +00:00

10 lines
122 B
Mathematica

function d=compareMahalanobis(E, query, candidate)
x=query-candidate;
x=(x.^2)./(E.val');
x=sum(x);
d=sqrt(x);
return;