Direct and indirect effects of perception on generalization gradients. (March 2019)