1. A method of imaging a sample comprising: illuminating a sample spaced apart from an image sensor at a first distance with an illumination source; obtaining an image of the sample from an image sensor with the sample spaced apart from the image sensor at the first distance; illuminating the sample spaced apart from an image sensor at a one or more distances different from the first distance with an illumination source; obtaining an image of the sample from an image sensor with the sample spaced apart from the image sensor at the one or more distances different from the first distance; registering the images of the sample obtained at the one or more distances and the image of the sample obtained at the first distance; recovering lost phase information from the registered images; and reconstructing an amplitude or phase image of the sample based at least in part on the recovered lost phase information.