void load_template (char *minutiae_file, signed char buffer[2404]) { struct xyt_struct *templ; templ = bz_load (minutiae_file); memcpy(buffer,templ,2404); free(templ); }
int bozorth(char * pProbeFile, char * pGalleryFile){ /* Structs con información de las minutias */ struct xyt_struct * pstruct = XYT_NULL; struct xyt_struct * gstruct = XYT_NULL; /* Resultado de la comparación */ int score; /* Carga archivo de referencia */ pstruct = bz_load( pProbeFile ); if ( pstruct == XYT_NULL ) { printf("Error loading p\n"); return -1; } /* Carga archivo de comparación */ gstruct = bz_load( pGalleryFile ); if ( gstruct == XYT_NULL ) { printf("Error loading g\n"); return -2; } /* Define los nombres de los archivos de referencia y comparación * que están siendo procesados*/ set_probe_filename( pProbeFile ); set_gallery_filename( pGalleryFile ); /* Compara los archivos */ score = bozorth_main(pstruct, gstruct); /* Libera memoria */ free( (char *) pstruct); free( (char *) gstruct); printf("Resultado: %d\n", score); return score; }