フィルターのクリア

Whether the use of the function mahalanobis following is correct?

1 回表示 (過去 30 日間)
Alvindra Pratama
Alvindra Pratama 2016 年 5 月 24 日
It's my first time to use mahalanobis for calculating & comparing distance of all projected trained images from the projected test image, whether the use of my coding is correct? Here is my code :
mahal = [ ];
for i=1 : size(eigenfaces,2)
temp = (norm(projtestimg-projectimg(:,i)))^2;
mahal = [mahal temp];
end
disp(mahal);
[mahal_min recognized_index] = min(mahal);
I was a little doubt because I think that the results generated by the calculation is the same premise is that if I use euclidean. Please help me if I have been wrong to make code and please give the correct code for me

回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by