A SoC solution for fingerprint minutiae extraction