Computational Phase Imaging in Nonlinear and Quantum Systems