Please note that bozorth_main(pstruct, gstruct) returns non zero result for the same file used for input (pstruct = gstruct) The score for the same minutiae would be null. Best regards.