Utkarsh-Deshmukh/Fingerprint-Enhancement-Python

Slight different in Cos image.

michealChin opened this issue · 3 comments

Hi,

I have converted the code to pure c# however there are some discrepancy on the final image. So I try to visualize the orientation image for Sin, Cos and etc

I found out the Cos image generated from c# is as follow
cos
Generated by Python code
cos

Orientation (c#)
orientation
Orientation (Python)
1

Here is the original fingerprint
1

Enhance result from c#

testout

Enhance result from Python

1

Could it be the different in the Cos orientation image as generated by both C# and Python that cause the subsequence failure in the final enhance image?

here are a few points that you can debug on:

  • if the sin image is similar but the cos image is different, that is an issue. can you figure out what that would be happening?
  • can you verify the gabor filter bank that you generate is correct or not?
  • In the python code, there would be a variable in the function __ridge_freq called _mean_freq. Can you verify if this value matches with the one which you have derived?

Finally I got my C# version working! Thanks again for you kind sharing! Hope you have a nice day!
testout

glad that it worked!