The location of 1D objects is determined by numerically back-propagating the experimentally measured spatial coherence function. A partially coherent light and dynamical double slits generated by digital light processor are used in the coherence measurements