Functional Neural Networks for Parametric Image Restoration Problems