Extracting minutia such as ridge endings and bifurcations