Computational Imaging Using Spatially Modulated Optical Fields