Predicting visual resolution from detection thresholds