Deconvolution of Images and Spectra by Engineering