Neural networks with Fourier plane nonlinear filtering for pattern recognition