Fingerprint image quality measurement algorithm