On the Neural Computations Underlying Curve Detection