Text this: Segmentation of fingerprint image based on gradient magnitude and coherence