ganesh449
Junior Member level 1
**broken link removed**
In the above link before process 1 step he has taken D=6,i searched for how to find D value but when i wrote some sample code it is giving values 2.22... something .Can you correct my code and give me correct process.Thanks in advance.
I have one doubt about interridegedistance parameter that will be used for false minutiae
removal in fingerptin images comparison.In one document i found that it is calaculated using the procedure given here,we
first calculate the inter ridge distance D which is the average distance between two neighboring ridges. For this scan
each row to calculate the inter ridge distance using the formula:
Inter ridge distance = sum all pixels with values 1/row length.
Finally an averaged value over all rows gives D. .for the above process we are considering the image obtained after
Thinning operation.Can you give the matlab code for it.otherwise i have written some code can you please check it once....
BElow is the code which i have written::
clc;
clear all;
close all;
y=ones(3);
y=[1 1 1; 1 1 1; 0 0 0 ];
[m,n]=size;
avgrowsum=0;
finalavgrowsum=0;
k=0;
for r=1:m
rowsum=0;
for c=1:n
if (y(r,c)>0)
rowsum=rowsum+y(r,c);
disp(rowsum)
avgrowsum = (m/rowsum);
disp(avgrowsum)
end
end
if (avgrowsum > 0)
finalavgrowsum=avgrowsum+finalavgrowsum;
k=k+1;
disp(finalavgrowsum)
end
end
disp(finalavgrowsum)
disp(k)
ffinalavgrowsum= (finalavgrowsum/k);
disp(ffinalavgrowsum)
Thanks in advance.
Regards,
GANESH
In the above link before process 1 step he has taken D=6,i searched for how to find D value but when i wrote some sample code it is giving values 2.22... something .Can you correct my code and give me correct process.Thanks in advance.
I have one doubt about interridegedistance parameter that will be used for false minutiae
removal in fingerptin images comparison.In one document i found that it is calaculated using the procedure given here,we
first calculate the inter ridge distance D which is the average distance between two neighboring ridges. For this scan
each row to calculate the inter ridge distance using the formula:
Inter ridge distance = sum all pixels with values 1/row length.
Finally an averaged value over all rows gives D. .for the above process we are considering the image obtained after
Thinning operation.Can you give the matlab code for it.otherwise i have written some code can you please check it once....
BElow is the code which i have written::
clc;
clear all;
close all;
y=ones(3);
y=[1 1 1; 1 1 1; 0 0 0 ];
[m,n]=size;
avgrowsum=0;
finalavgrowsum=0;
k=0;
for r=1:m
rowsum=0;
for c=1:n
if (y(r,c)>0)
rowsum=rowsum+y(r,c);
disp(rowsum)
avgrowsum = (m/rowsum);
disp(avgrowsum)
end
end
if (avgrowsum > 0)
finalavgrowsum=avgrowsum+finalavgrowsum;
k=k+1;
disp(finalavgrowsum)
end
end
disp(finalavgrowsum)
disp(k)
ffinalavgrowsum= (finalavgrowsum/k);
disp(ffinalavgrowsum)
Thanks in advance.
Regards,
GANESH
Attachments
Last edited: