The invention discloses a system (1) for processing images (4) comprising a main neural network (2), preferably convolution-based (CNN), and at least one preprocessing neural network (6), preferably convolution-based, upstream of the main neural network (2), for carrying out before processing by the main neural network (2) at least one parametric transformation f, differentiable with respect to its parameters, this transformation being applied to at least part of the pixels of the image and being of the form P' = f(V(p), Theta) where p is a processed pixel of the original image or of a decomposition of this image, p' the pixel of the transformed image or of its decomposition, V(p) is a neighborhood of the pixel p, and Theta is a vector of parameters, the preprocessing neural network (6) having at least part of its learning be performed simultaneously with that of the main neural network (2).