Matching algorithm in Fingerprint authentication

2 ビュー (過去 30 日間)
Alawi Al-Saggaf
Alawi Al-Saggaf 2022 年 1 月 13 日
コメント済み: Alawi Al-Saggaf 2022 年 2 月 9 日
How I can calculate the Euclidean distance between two finger templates, where the lengths of two features are not same? e.g F1 has 61 minutia points and F2 has 190 points

回答 (1 件)

Shivam Singh
Shivam Singh 2022 年 2 月 4 日
Hello,
It is my understanding that you are trying to calculate the Euclidian distance between two features vectors of different length.
In order to calculate the Euclidian distance, the length of the two feature vectors should be same. You may reduce the length of the larger length feature vector to the length of smaller one by using random sampling. For random sampling, you may refer the “datasample” function. Then, you may repeat the experiment for some iterations, and average the Euclidian distances observed in each iteration to get your final Euclidian distance.
You may refer the below example:
%The two input feature vectors of length 61 and 191
smallerFeature = rand(1, 61);
LargerFeature = rand(1,191);
averageEuclidianDistance=0;
%iteration is the number of times you want to repeat the experiment
iterations=100;
for i=1:iterations
sampledLargerFeature = datasample(LargerFeature, 61);
%Calculating Euclidian distance for each iteration
iterationEuclidianDistance= sqrt(sum((sampledLargerFeature-smallerFeature).^2));
averageEuclidianDistance = averageEuclidianDistance + iterationEuclidianDistance;
end
averageEuclidianDistance=averageEuclidianDistance/iterations
%averageEuclidianDistance is the required Euclidian distance.
  1 件のコメント
Alawi Al-Saggaf
Alawi Al-Saggaf 2022 年 2 月 9 日
Thank you, I will try it

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeText Analytics Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by