1. A non-linear optical system for imaging an object comprising: optics for focusing and encoding a wavefront from the object to an intermediate image such that an optical transfer function of the optical system, at the intermediate image, is more invariant to focus-related aberrations as compared to an intermediate image formed by the optics without encoding; a non-linear detector for detecting the intermediate image; and a linearization processor for electronically capturing the intermediate image.