Extracting features related to ridge properties; determining the fingerprint type