zkai2000
Member level 5

hi, i've completed the C++ codes for matching two images (fingerprints). but it resulted "match" for every two images i compared. y did this happen? can anyone check the code for me? thanks!!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
1) is not C++ code
Well it seems that r1,r2 angle1.angle2 need to be ARRAYS or pointers to BUFFERS.. not just single valued variables
NOW i'm affraid that once all that fixed YOUR BIGGEST PROBLEM is the MATCHING algorithm based on that angle and distance ..I don't know where you got that IDEA
but i don't think that YOU CAN CATCH CRIMINALS WITH IT ...........!!!!
if (ImageOut1[i][j]=0) //black dots' coordinates in monochrome fingerprint
{
for(i=1;i<WIDTH;i++);
{
for(j=1;j<HEIGHT;j++);
{
//formula for finding the distance between two points
r1 = pow(((pow((i-x0),2) + pow((j-y0),2))),0.5) ;
//formula for finding the angle between the point and (0,0)
angle1 = atan((j-y0)/(i-x0)) * 180 / pi;
}
}
}
if (ImageOut1[i][j]=0)
for(k=1;k<WIDTH;k++)
for(l=1;l<HEIGHT;l++)
// --- "{" --starts here
if(ImageIn2[k][l]>128)
ImageOut2[k][l]=255;
else
ImageOut2[k][l]=0;
// --- "}" -- implicitly ends here
//formula for finding the distance between two points
r2 = pow(((pow((k-x0),2) + pow((l-y0),2))),0.5) ;
//formula for finding the angle between the point and (0,0)
angle2 = atan((l-y0)/(k-x0)) * 180 / pi;