The estimation and explanation of tuning curves in intermediate visual areas