An Adaptive Multiresolution Approach to Fingerprint Recognition