All-in-focus imaging is one of the key problems for imaging systems. Roughly speaking, there are two alternative approaches to this problem. The first one is based on optical systems insensitive to distance between object and camera what automatically enables extended depth of field (DoF) of imaging. In classical optics and engineering, it is achieved by design of complex, bulky, and expensive multilens objectives. In a recent development, the wavefront coding (WC) supported by the inverse imaging algorithm opens the door for solutions that are more compact, have a lighter weight, and are lower in cost compared with conventional refractive optics systems, e.g., Ref. 1. The alternative vision of the problem is based on optical systems highly sensitive to variations of distance object/camera. This distance is estimated and the estimates are used for refocusing of registered data to achieve the all-in-focus result, e.g., Ref. 2.