Nonlinear Modeling Of The Early And Mid-Level Visual System