Direction-based fingerprint image binarization