Skip to main content
. 2017 Mar 22;8(4):2287–2300. doi: 10.1364/BOE.8.002287

Fig. 4.

Fig. 4

The golden section search algorithm for automatic focus tuning. z1 and z2 are the two initial boundaries of the search region. Two extra intensities (I(z3) and I(z4)) at the golden ratio distance from the initial boundaries are then calculated based on the intensities at the two boundaries. The search region is narrowed down by comparingI(z2) and I(z4). The boundaries of the search region are updated according to the values at z3 and z4 . The values of z3 and z4 are then the replaced by the values of z3 and z4 accordingly. This process is repeated until the difference between I(z2) and I(z4) is smaller than a pre-defined threshold.