A liquid crystal lens can change the plane of focus quickly by voltage, which makes it possible to extend the depth of field through focus stacking, focal sweep exposure and similar methods, and to obtain 3D depth information from a sequence of focal planes. A photograph has only one plane of focus. Away from that plane, an object point becomes a blur spot on the detector, and the farther away, the blurrier. A limited depth of field looks like a drawback, but it also carries depth information: the focus setting at which an object point is sharpest depends on how far it is from the lens. Focus scanning, focus stacking, depth from focus and extended depth of field (EDOF) imaging are all methods that exploit or circumvent this fact, and they share one prerequisite: acquiring images at different focus settings.
The role of a liquid crystal tunable lens here is very specific: it turns "focus position" into an electrical quantity. Changing the voltage changes the added optical power, and the plane of focus moves back and forth in object space, while the lenses, the detector and the sample stay still. This article first explains why depth of field is limited, then discusses in turn multi-focal-plane acquisition, focus stacking, depth estimation, scan timing, magnification registration and focal sweep exposure, and finally compares the approach with other 3D methods and summarizes existing reports and limiting conditions. Focusing systems in cameras and machine vision are covered in Liquid Crystal Lens Autofocus: Electrical Focusing in Cameras and Machine Vision, and Z-scanning in microscopes in Microscope Z-Scanning with Liquid Crystal Lenses: Fast Focusing Without Moving the Objective; this article cites figures from these two scenarios only where needed.
This article follows the conventions of What Is a Liquid Crystal Tunable Lens? Principles, Types and System Integration: optical power , in diopters D (); the object distance is measured from the lens, and the object-side vergence is , also in D; is the added optical power provided by the liquid crystal lens; is the F-number. The system operates in air, and the example wavelength is .
Where depth of field comes from, and why it cannot simply be increased
Two sources: geometric blur and diffraction
Start in object space. The imaging beam forms a light cone with half-angle at the object point, and the numerical aperture is . When an object point departs from the plane of focus by along the optical axis, the cross-section of the cone in the plane of focus has a diameter of about ; this is the geometric blur spot referred to object space. If the allowed object-side blur diameter is (usually taken as the pixel size or the resolution requirement divided by the magnification), the geometric depth of field is , with a total width of .
Even if is made very small, the depth of field does not go to zero, because the focus itself is broadened by diffraction. Born and Wolf analyzed the intensity distribution near the focus: under paraxial conditions, the on-axis intensity drops by about 20% at a defocus of about , which is usually taken as the criterion for the diffraction-limited depth of focus; the same theory gives the radius of the first dark ring of the Airy disk as , the commonly used lateral resolution [1]. Adding the two terms gives the common approximation
is the total width of the object-side depth of field and is the lateral resolution. Adding the two terms is only an engineering approximation: the diffraction term describes the axial broadening of an ideal focus, the geometric term describes the cross-section of the defocused cone, and both act at the same time when the defocus is small.
The conflict between depth of field and resolution
Both expressions decrease as NA increases, but at different rates. If the allowed blur is set equal to the resolution itself (, i.e. without deliberately relaxing the sharpness requirement), the depth of field becomes
The depth of field is proportional to the square of the lateral resolution. Resolving lateral detail twice as finely reduces the depth of field to one quarter. This is not a defect of a particular lens design; it arises because the same aperture determines both the lateral and the axial convergence angles: a large aperture gives a focus that is narrow laterally and also changes quickly along the optical axis.
Example. At , and the depth of field is about ; at , and the depth of field is only about . To see a 200 μm tall sample sharply everywhere at an NA of 0.3, it must be divided into at least about 21 focal planes.
In camera terms: depth of field in diopters is constant
For a camera, the object distance is much larger than the focal length , and the entrance pupil diameter is . The object-side numerical aperture is , and the image-side allowed blur referred to object space is . Substituting into the expression above and dividing by (since ) gives the depth of field expressed in vergence
There is no in this expression. In other words, measured in diopters, the depth of field is independent of the focus distance; converted back to length, , so the depth of field is thin up close and thick far away. The second term is exactly twice the object-side vergence tolerance given in What Is a Liquid Crystal Tunable Lens? Principles, Types and System Integration (the sum of the positive and negative sides).
Example. Focal length 8 mm, F/2 ( mm), : the diffraction term is 0.1375 D, the geometric term 0.1875 D, and D. Focused at 0.3 m, the sharp range is about 0.286–0.315 m, about 29 mm thick; focused at 1 m, it is about 0.860–1.194 m, about 0.33 m thick.
Stopping down the aperture increases the depth of field, but at two costs. The first is diffraction: the Airy disk diameter grows with the F-number, and for the sharpness requirement can no longer be met once exceeds about 2.24; in Figure 1(b), F/2 is already close to this boundary. The second is light: the light collected is inversely proportional to , so stopping down from F/2 to F/8 loses a factor of 16, and noise rises accordingly. Kuthirummal et al. call this a long-standing fundamental trade-off between depth of field and signal-to-noise ratio, and note that the smaller the pixels, the more pronounced the conflict [2].
Multi-focal-plane acquisition: trading time for depth of field
Since the depth of field of a single image is limited by the aperture, another route is to keep the large aperture, capture several focal planes sequentially and combine the information computationally. To cover a vergence range from to , the focal plane spacing should be no larger than the depth of field , and the number of focal planes needed is about
Example. Using the 0.325 D lens above to cover infinity to 0.33 m (0 to 3 D) requires at least about 9.2 focal planes; below, a step of 0.3 D is used, for 11 focal planes in total (0, 0.3, …, 3.0 D).
Liquid crystal lenses are particularly well suited to this, for three reasons, all related to the derivation above.
The added power corresponds directly to object-side vergence. From the focusing relation (with the liquid crystal lens in contact with the main lens, or with object distances measured from the liquid crystal lens), if the fixed lens group is nominally focused at infinity, the vergence of the plane of focus equals . Because the depth of field in diopters is constant, spacing the focal planes evenly in naturally gives each focal plane an equal coverage. Mechanical solutions can do the same, but they must convert equal diopter spacing into nonlinear lens displacements.
The required power range is small, which suits small-aperture devices. Covering 0 to 3 D requires only 3 D of tunability. The upper limit of the optical power of a single GRIN gradient-index liquid crystal lens is about ; at a 4 mm aperture, an optical path difference of provides exactly 3 D, matching the stop size of the F/2, 8 mm lens above. The principle of GRIN lenses and the origin of this limit are covered in GRIN Liquid Crystal Lenses: How Voltage Tunes Focal Length Continuously.
No moving mass, repeatable focal states. The focus state is determined by the voltage, with no guide clearance, backlash or mechanical oscillation; when the lens is placed at a suitable position, switching focal states does not change the magnification (see below). Both points matter for algorithms that compare multiple images pixel by pixel.
Speed, however, is the weak point of liquid crystal lenses and needs dedicated discussion (see the section "Scan speed and synchronization").
Focus stacking: acquisition, sharpness evaluation, fusion
The goal of focus stacking is an image that is sharp everywhere (an all-in-focus image). The process has three steps, as shown in Figure 2.
Acquisition. images are acquired with the step of the previous section, each corresponding to a known .
Sharpness evaluation. Defocus acts as a low-pass filter. From the standpoint of Fourier optics, defocus is equivalent to adding a quadratic phase across the pupil; the optical transfer function (OTF) of the system drops rapidly at high frequencies as the defocus increases, and under severe defocus zeros and contrast reversals appear [3]. So the more local high-frequency energy there is, the closer that location is to focus. On this basis Nayar and Nakagawa designed the sum-modified-Laplacian (SML) operator: compute the absolute values of the second differences in the and directions separately and add them, so that the second derivatives in the two directions cannot cancel each other, then sum over a small 3×3 or 5×5 window to obtain the sharpness at that point [4]. Other common measures include local variance and gradient energy, based on the same principle.
Fusion. For each pixel, find the index of the largest of the sharpness values, and take the pixel value of image at that point; this assembles the all-in-focus image, and itself is a coarse depth map. In practice, is also spatially smoothed, and transition regions are blended with weights to reduce stitching artifacts.
This process has two inherent weaknesses. First, sharpness can only be measured where there is texture; a uniform surface is equally "blurry" in every image, and its maximum is meaningless. Second, at depth discontinuities, the defocus blur of a near object spills over onto the distant background, so that band is not a "clean" sharp image in any of the images, and halos easily appear after fusion. Neither point depends on the focusing device used, but both affect whether the system as a whole is usable.
Obtaining depth from a focal stack
Depth from focus: finding the sharpness peak
For one pixel, plotting the sharpness as a function of the added power gives a curve that peaks at focus, called the focus curve. The peak position is the object-side vergence of that point, and the depth is . This is depth from focus (also called shape from focus).
Taking only the largest sample can produce a depth error of up to half a step. Nayar and Nakagawa approximated the focus curve as a Gaussian and located the peak by interpolating three samples, the peak and its two neighbors, noting that at least three sharpness values are needed for Gaussian interpolation; they used this method on an optical microscope to measure the surface topography of various industrial samples [4]. The logarithm of a Gaussian is a parabola, and the vertex of the parabola through three equally spaced points is
where is the sample with the highest sharpness, , and are the sharpness values at that sample and its two neighbors, and is the step. The meaning is intuitive: whichever side has the higher sharpness, the peak shifts toward that side; the denominator reflects the curvature of the curve, and the sharper the curve, the smaller the shift for the same asymmetry.
Example. For the blue pixel in Figure 3, the largest sample is at 1.5 D (corresponding to 0.667 m), whereas the true value is 1.37 D (0.730 m); taking only the maximum gives a depth error of about 63 mm. Interpolating with the formula above, the sharpness values 0.579, 0.726 and 0.030 at 1.2, 1.5 and 1.8 D give 1.370 D, which agrees with the true value in this noise-free Gaussian model. Real data are noisy and focus curves are not strictly Gaussian; interpolation reduces the error to a fraction of the step rather than eliminating it.
What determines depth resolution
The width of the focus curve is of the same order as the depth of field. The narrower the curve, the better defined the peak position for the same noise, so in vergence space the precision of depth from focus is broadly determined by the depth of field and the signal-to-noise ratio. This is exactly the opposite of what ordinary imaging seeks: ordinary imaging wants a large depth of field, while depth from focus wants a small one, i.e. a large aperture.
Converting a vergence error into a length requires multiplying by :
Example. Assuming an uncertainty of the interpolated peak position of 0.03 D (about 1/10 of the step, an assumption for the example; the actual value depends on texture contrast and noise), the depth error is about 2.7 mm for an object at 0.3 m and about 30 mm at 1 m. With the same system, depth resolution up close is more than an order of magnitude better than far away.
This also determines the relation between step and depth of field: the step must be small enough that at least three points near the focus peak fall on the useful part of the curve; the setting in Figure 3 (step 0.3 D, curve full width at half maximum about 0.38 D) is already close to the lower limit, and with a larger step the side points that interpolation relies on fall into the noise floor. Conversely, a step much smaller than the depth of field does not improve precision proportionally; it only increases acquisition time.
Depth from defocus: comparing the blur of two images
Depth from focus needs many images. Depth from defocus needs only two or three: depth is inferred from the degree of blur, without having to scan to the sharp point. Pentland was among the first to set out this idea systematically, comparing the blur of the same region in two images taken with different optical parameters (aperture) so as to remove the influence of the scene's own texture [5].
Take the Gaussian blur model as an illustration. Let the two images be focused at vergences and , let the object point have vergence , and let the blur width be approximately , where is determined by the aperture and image distance and must be calibrated. The ratio of the local spectra of the two images leaves only the ratio of the two OTFs, removing the scene texture, and from it can be obtained, where
This is linear in , so the depth can be solved for directly. A single image only tells how large the blur is and cannot distinguish whether the object is in front of or behind the plane of focus; two images at different focal states also remove this front–back ambiguity.
Ye et al. applied this method to a liquid crystal lens imaging system: the system consists of a camera module and a liquid crystal lens, one image is taken at the maximum positive optical power and one at the maximum negative optical power of the liquid crystal lens, and the scene depth is obtained by depth from defocus, with no mechanical lens movement in the whole process [6]. Depth from defocus has a clear speed advantage, but it depends on an accurate blur model: the aberrations and scattering of the liquid crystal lens at different voltages change the shape of the point spread function, so calibration must be done in the actual drive states. Emberger et al. specifically studied the effect of the inherent diffuse scattering of liquid crystal lenses on depth from focus, and evaluated the design parameters of liquid crystal lenses from optical, electrical and manufacturing aspects according to the needs of a near-pixel processing architecture [7].
Scan speed and synchronization
Time budget
The acquisition time of one focal stack is
is the exposure time of each image, is the settling time between adjacent focal states, and is the time to return to the start after one full sweep. The scene must be approximately static during ; otherwise the images at different focal planes will not match.
After a liquid crystal lens changes focal state, the optical power does not arrive immediately but approaches the target value gradually. Approximating this process as first-order with time constant , and requiring the residual error to be less than a fraction of the depth of field, the settling time needed is
The settling time grows only logarithmically with the step size, but it is proportional to . is determined by the liquid crystal layer thickness, the material and the drive scheme; the relaxation time grows with the square of the cell gap, and the switch-on direction can be accelerated with a higher voltage; these rules are covered in Electrical Control of Liquid Crystal Devices: Response Time, Polarization Switches and Cascaded Switching.
Example. Take ms (example value, representing a GRIN liquid crystal lens with relatively fast drive; real devices range from tens to hundreds of milliseconds), , a step of 0.3 D and a depth of field of 0.325 D: each step settles in about 66.7 ms, and returning from 3 D to 0 takes about 135.8 ms. With 11 focal planes and 5 ms exposure each, one stack takes about 858 ms, about 1.2 stacks per second. With a back-and-forth scan instead (odd stacks from near to far, even stacks from far to near), the return is saved and a stack takes about 722 ms.
This speed suits inspection and measurement of static objects, but not video-rate 3D imaging. There are two ways to speed it up: capture during the transition without waiting for settling, or switch to discrete-state devices that switch quickly.
Continuous scanning and use of the transient
In continuous scanning, the camera exposes at fixed intervals while the optical power is changing. The focus state of each image is no longer a point but a short segment swept during the exposure, which must be much smaller than the depth of field.
Example. Sweeping 3 D in 100 ms gives a rate of 0.03 D/ms; with a 2 ms exposure per image, the focus state changes by 0.06 D, about 18% of the depth of field, which has little effect. The 11 images are 10 ms apart, so the camera needs 100 frames per second.
This approach requires the variation of optical power with time to be repeatable and calibrated: the of each image is no longer given by a "target voltage" but looked up from "the time since the trigger". The transition of a liquid crystal lens can be exploited for exactly this. Bai et al. studied the transient behavior of a liquid crystal lens switching between positive and negative lens states and found that the device keeps acting as a lens throughout the switching, with the optical power changing continuously from positive to negative and the RMS aberration varying with time but always below 0.1 wavelength; they used this process to acquire extended depth of field images [8]. Xiao et al. used the same property to rapidly acquire multi-focal-plane images without magnification change, obtaining a low-error depth map and an all-in-focus image with a depth-from-focus pipeline [9]. Such approaches turn "slow response" into "the scan itself", at the cost that the scan curve is determined by the physical process of the device and is not linear, so it must be calibrated for each unit and the temperature must be controlled.
There is also an easily overlooked synchronization issue: rolling shutter cameras expose row by row, so in continuous scanning different rows correspond to different focus states. Kuthirummal et al. exploited exactly this, using a rolling shutter detector moving at constant speed to obtain a tilted depth-of-field plane [2]. For focus stacking it is a source of error; a global shutter should be used, or the row time offset should be included in the of each row.
Example. If the readout time from the first to the last row of a frame is 10 ms, at a scan rate of 0.03 D/ms the focus states of the first and last rows differ by 0.3 D, close to one depth of field.
Fast discrete switching: cascaded PB lenses
The liquid crystal layer of a PB lens (geometric phase lens) only needs to satisfy the half-wave condition, and switching is done by a polarization switch or by an active PB lens. Lee et al. reported an active PB lens with a rise time of 0.18 ms and a decay time of 0.54 ms; a passive PB lens with a thin TN polarization rotator switches in about 2 ms, and with a ferroelectric liquid crystal in about 0.1 ms [10]. Cascading several PB lenses increases the number of focal states in powers of 2; the principle is covered in PB Lens Principles: How Geometric Phase Liquid Crystal Lenses Switch Focal Length Electrically.
Example. Three PB lenses with powers of ±0.15, ±0.3 and ±0.6 D combine into 8 focal states from −1.05 to +1.05 D at intervals of 0.3 D. Counting 2 ms per switch and 5 ms per exposure, 8 focal planes take about 56 ms, about 18 stacks per second; with 0.1 ms per switch it is about 41 ms, and the exposure time then becomes the dominant part.
This is a feasible combination, but at present it is application potential that needs experimental verification. PB lenses require circularly polarized input of a single handedness, so imaging with natural light loses at least half of the light; the optical power is proportional to wavelength, so under broadband illumination the focal planes of different colors do not coincide; unmodulated zero-order leakage superimposes a weak image at another focal length on every focal state, reducing the contrast of the sharpness curve. These factors affect sharpness comparison more directly than they affect ordinary imaging.
Magnification change and registration
Why changing the focal state rescales the image
Focus stacking and depth from focus compare images at different focal states pixel by pixel, which presupposes that the same object point falls on the same pixel in every image. The center of the defocus blur spot is determined by the chief ray (the ray through the center of the aperture stop), so the question reduces to whether the landing point of the chief ray on the detector moves when the focal state changes.
If the liquid crystal lens is right at the aperture stop, the chief ray passes through the center of the lens, where there is no deflection; the path of the chief ray is independent of and the landing point does not move, as shown in the upper part of Figure 5(a).
If the liquid crystal lens is a distance in front of the stop (in this section denotes this separation, not the liquid crystal layer thickness), the chief ray passes through it at an off-center height and is deflected by . Let the object point have height and distance from the liquid crystal lens; since the deflected chief ray must pass through the center of the stop, solving gives . The image height on the detector is proportional to , so the ratio of magnifications is
The approximation holds for and . A positive added power increases the height of the chief ray at the liquid crystal lens, so after deflection it passes through the stop more steeply and the image becomes larger.
Example. For m and changing from 0 to 3 D, the magnification change is about 0.60% for mm, about 1.51% for mm and about 3.03% for mm. For an image 2000 pixels in half-width, at mm an edge image point moves by about 30 pixels, far beyond the 3×3 or 5×5 window of the sharpness operator. For comparison, a lens with an 8 mm focal length focused by 3 D by moving the lens must change its image distance by about , with a magnification change of about 2.4%.
Countermeasures
In mechanical focusing, the classic solution to this problem is telecentric optics. Watanabe and Nayar pointed out that the magnification change caused by changing the focus setting is a difficulty for depth from focus and depth from defocus; adding a stop at the front focal plane of an ordinary lens makes the image-side chief rays parallel to the optical axis (image-side telecentric), so that moving the detector no longer changes the magnification, and most commercial lenses can be modified this way [11].
The countermeasure with a liquid crystal lens is more direct: place it at the aperture stop, or in a plane conjugate to the stop (the pupil plane). It then does not change the chief ray, the change of focal state causes no rescaling, and no additional telecentric stop is needed. The depth sensor of Xiao et al. emphasizes exactly "multi-focal-plane images without magnification change" [9]. Another arrangement places the liquid crystal lens at the front focal plane of the main lens with the stop located there as well; the system focal length then also stays constant and the system is image-side telecentric. In microscopes, placing the tunable lens in a plane conjugate to the back focal plane of the objective follows the same principle.
Even at the stop, several residual errors remain:
- Decentration. If the optical center of the liquid crystal lens is offset from the center of the stop by , changing is equivalent to adding a deflection angle of , and the whole image shifts by about . Example. For , D and an image distance of 8 mm, the shift is about 1.2 μm, less than one pixel, but the alignment between electrode and stop must still be controlled.
- Voltage-dependent aberrations. The phase profile of a GRIN liquid crystal lens deviates from a paraboloid, the deviation changes with voltage, and the distortion of off-axis image points also varies slightly with the focal state.
- Object-side telecentricity or not. The discussion above concerns "whether the same object point coincides across focal states". A separate issue is that objects at different depths have different magnifications (perspective); this affects the conversion of lateral dimensions in measurement but not the registration in focus stacking. If lateral dimensions must be independent of depth, an object-side telecentric lens is needed.
Practical systems usually eliminate rescaling optically as far as possible, then handle the residual with calibration or software registration.
Extended depth of field: sweeping focus during the exposure
Principle
Focus stacking requires many images. Another approach to extending the depth of field takes only one: sweep the plane of focus through the entire depth range during a single exposure. Häusler proposed doing this in microscopes in 1972, combined with a second image-processing step to increase the depth of focus [12]; Kuthirummal et al. extended the idea to ordinary cameras, moving the detector at constant speed along the optical axis during the exposure; the resulting integrated point spread function (integrated PSF, IPSF) is nearly invariant to object depth within the sweep range, and deconvolving with a single kernel yields an image with large depth of field and high signal-to-noise ratio [2].
Why is the integrated point spread function independent of depth? A geometric model makes it clear. With an image distance and an entrance pupil diameter , an object point of vergence in a state focused at vergence has a blur spot diameter of about . If the focus vergence is swept at a constant rate, , the blur spot radius changes linearly at a rate and is zero at the moment the object point is in focus. Averaging the uniform-disk point spread function ( for radius ) over the exposure time gives
is the distance from the center of the blur, and and are the maximum blur radii the object point reaches at the start and end of the sweep. The main term is independent of the depth of the object point; depth enters only through and , and for object points in the middle of the sweep range both and are large, so these two terms are small. The IPSF is therefore approximately independent of depth, with larger deviations only for object points near the two ends of the sweep. Kuthirummal et al. also observed that invariance is slightly worse at depths corresponding to about 10% of the detector travel at either end [2].
The IPSF has a sharp peak at the center, which means that although its transfer function is suppressed at high frequencies, it has no zeros as ordinary defocus does [3]; no information is lost, and it can be recovered by deconvolution. The cost is that deconvolution amplifies noise: the larger the sweep range, the larger , the lower the peak of the IPSF and the more noise is amplified in recovery. So focal sweep extended depth of field does not obtain depth of field for free; it trades the light collected by a large aperture for it, and then pays back part of the signal-to-noise ratio in computation.
Focal sweep with a liquid crystal lens
From the derivation above, the blur spot depends only on , regardless of whether is changed by moving the detector or by adding optical power. Changing at a constant rate with a liquid crystal lens is equivalent to moving the detector at constant speed. The required sweep is small: in the example of Kuthirummal et al., a lens with a 12.5 mm focal length sweeps the plane of focus from 450 mm to infinity with a detector travel of only about 360 μm [2]; in vergence, this range is only about 2.2 D, well within the tuning range of small-aperture liquid crystal lenses.
Focal sweep with a liquid crystal lens has two particular features.
First, the sweep curve is not necessarily linear. When the transient of a switching GRIN liquid crystal lens is used, the optical power changes quickly at first and then slowly, and the time spent per diopter is not uniform. From the derivation of the IPSF, the longer an object point dwells near focus, the stronger the peak, which makes the strength of the IPSF vary with depth; either depth-dependent kernels must be computed from the measured sweep curve, or the drive waveform must shape the sweep to be close to constant rate. Bai et al. have already used the positive–negative switching transient of a liquid crystal lens to acquire extended depth of field images [8].
Second, the sweep must be completed within one exposure, or repeated exactly over multiple exposures. Video-rate extended depth of field requires one sweep per frame, and the response time of a GRIN lens directly limits the frame rate; in this case, continuous back-and-forth scanning with one exposure on the forward sweep and one on the return is a more reasonable timing than a one-way sweep.
Other extended depth of field methods
Focal sweep is not the only way to extend depth of field. Wavefront coding, proposed by Dowski and Cathey, adds a fixed cubic phase plate at the pupil, making the point spread function insensitive to defocus, and then recovers the image digitally [13]; it needs no movable or tunable element, but once the phase plate is made, the working range is fixed as well. Multifocal elements form several foci at once, so at each depth a sharp component is superimposed on a blurred background from the other components, which likewise requires deconvolution; a PB lens under unpolarized input gives both positive and negative optical power simultaneously and is itself a bifocal element. The value of liquid crystal devices in these schemes is that they make the encoding electrically switchable: on when a large depth of field is needed, back to ordinary imaging when it is not. System-level verification in this direction is still scarce, and it should be regarded as application potential.
Liquid crystal lenses can also be combined with other 3D imaging methods. Wang et al. used a large-aperture electrically tunable liquid crystal lens in a synthetic aperture integral imaging 3D endoscope, with the imaging plane continuously adjustable between 18 mm and 38 mm, and reported that the total depth of field was extended from 12 mm to 51 mm [14].
Comparison with other 3D methods
Focus-based depth acquisition is passive and coaxial: it needs only one lens and one detector, no projected light and no baseline, so there are no occlusion shadows caused by different viewpoints as in stereo vision and structured light. Its weaknesses have been mentioned above: it depends on texture, its precision in vergence space is set by the depth of field and degrades as when converted to length, and it requires multiple exposures.
| Method | How depth is obtained | Active illumination | Single exposure | Dependence on scene texture | Main limits |
|---|---|---|---|---|---|
| Mechanical focus scanning (depth from focus) | Sharpness peak in a focal stack | Not needed | No | Strong | Moving parts, magnification change, speed |
| Liquid crystal lens focus scanning (depth from focus) | As above, with electrically controlled focal states | Not needed | No | Strong | Power range and aperture, response time, polarization, scattering |
| Depth from defocus | Comparing the blur of two or three defocused images | Not needed | No (two suffice) | Strong | Depends on blur model and calibration |
| Light field camera | Microlens array records ray directions | Not needed | Yes | Strong | Product of spatial and angular resolution limited by diffraction |
| Structured light | Projected pattern, triangulation | Needed | Depends on coding | Weak | Needs a baseline, occlusion, affected by ambient light |
| Time of flight (ToF) | Measures round-trip time or modulation phase of light | Needed | Yes | Weak | Needs a modulated source and a dedicated detector |
A light field camera places a microlens array behind the main lens and records position and direction in a single exposure, allowing refocusing or generation of a focal stack after the fact; Levoy et al. applied it to microscopes and also pointed out that diffraction limits the product of spatial and angular resolution [15]. In other words, a light field camera trades resolution for a single exposure, while liquid crystal lens focus scanning trades time for full resolution. Structured light projects a known pattern and computes depth by triangulation from the pattern's displacement in the camera; it can measure textureless surfaces [16], but needs a baseline between projector and camera, which brings occlusion and bulk. Time of flight measures the round-trip time of light pulses or modulated light; it is likewise active and does not depend on texture.
From this, the boundary of applicability of focus-based methods can be drawn. They suit best situations where the depth of field is shallow to begin with: short distances, large apertures, microscopic imaging. At the depth of field is about 10 μm, and depth resolution naturally reaches the micrometer level, which is why depth from focus was first implemented on microscopes [4]. Beyond a few meters, the depth of field in diopters converts to lengths of the order of meters, and the precision of depth from focus falls behind active methods. Liquid crystal lenses do not change this boundary; they change how things are done within it: electrically controlled focal states replace mechanical scanning, the system is more compact, focal states are repeatable and the magnification can be kept constant. Working distance switching and inspection applications in machine vision are covered in Liquid Crystal Lens Autofocus: Electrical Focusing in Cameras and Machine Vision, and the optical requirements of microscope Z-scanning and confocal imaging in Microscope Z-Scanning with Liquid Crystal Lenses: Fast Focusing Without Moving the Objective.
Existing reports and application potential
Organized by what has been reported, the capabilities of liquid crystal lenses already verified in this field include:
- Depth from defocus using two images at the maximum positive and negative optical power of a liquid crystal lens, obtaining scene depth without mechanical movement [6];
- Evaluating the effect of the inherent diffuse scattering of liquid crystal lenses on depth from focus, and determining lens design parameters accordingly [7];
- Using the transient of switching between positive and negative lens states, during which the lens keeps acting as a lens with an RMS aberration below 0.1 wavelength, for extended depth of field imaging [8];
- Using the same transient to rapidly acquire multi-focal-plane images without magnification change, obtaining a depth map and an all-in-focus image [9];
- Electrically adjusting the imaging plane in an integral imaging 3D endoscope to extend depth of field [14].
Most of this work consists of proof-of-principle prototypes with small device apertures and optical power ranges of the order of a few diopters, consistent with the analysis above of "small aperture, small power range". Directions yet to be verified, or that remain application potential, include: millisecond-level discrete focal stacks with cascaded PB lenses for video-rate depth from focus; the performance of polarization-independent liquid crystal lens structures in focal sweeps with natural light; and electrically switchable extended depth of field encoding.
What conditions limit it
Gathering the limiting conditions from the preceding sections, the following should be checked item by item before choosing a liquid crystal lens for multi-focal-plane acquisition:
- Power range and aperture. The required vergence range must fall within (GRIN lenses), with the aperture taken as the stop size. The larger the aperture, the smaller the tuning range, by the square.
- Speed. Estimate from the number of focal planes, the depth of field and the response time, and compare it with the speed of scene motion. GRIN lenses suit static or slow scenes; video rate requires transient scanning with a high-speed camera, or fast discrete switching devices.
- Polarization. A nematic GRIN lens modulates only one linear polarization component, and the other component keeps the original focal length; the superimposed defocused background raises the floor of the sharpness curve and weakens the distinctness of the peak. A polarizer (losing half the light) or a two-layer orthogonal structure is needed. PB lenses require circular polarization of a single handedness.
- Scattering and aberrations. The inherent diffuse scattering of liquid crystals lowers image contrast and directly affects sharpness measures [7]; aberrations vary with voltage, so the shape of the focus curve changes with the focal state. Depth from defocus is more sensitive to the shape of the point spread function and must be calibrated in the actual drive states.
- Chromatic aberration. The optical power of a liquid crystal lens varies with wavelength, so under broadband illumination the planes of focus of different colors are slightly offset. Sharpness can be computed from a single color channel only, or narrowband illumination can be used.
- Temperature and calibration. The voltage–power relation drifts with temperature. Depth from focus converts directly into depth, so an optical power error becomes a vergence error one to one; calibration and temperature compensation matter more than in ordinary autofocus.
- Scene conditions. Texture is required, and depth discontinuities produce fusion artifacts; these do not depend on the device, but they determine whether the approach can be used for a particular scene.
References
[1] M. Born, E. Wolf. Principles of Optics, 7th ed. Cambridge University Press, 1999. DOI: 10.1017/CBO9781139644181
[2] S. Kuthirummal, H. Nagahara, C. Zhou, S. K. Nayar. Flexible depth of field photography. IEEE Transactions on Pattern Analysis and Machine Intelligence, 33(1): 58–71, 2011. DOI: 10.1109/TPAMI.2010.66
[3] J. W. Goodman. Introduction to Fourier Optics, 3rd ed. Roberts & Company, 2005. ISBN 978-0-9747077-2-3
[4] S. K. Nayar, Y. Nakagawa. Shape from focus. IEEE Transactions on Pattern Analysis and Machine Intelligence, 16(8): 824–831, 1994. DOI: 10.1109/34.308479
[5] A. P. Pentland. A new sense for depth of field. IEEE Transactions on Pattern Analysis and Machine Intelligence, PAMI-9(4): 523–531, 1987. DOI: 10.1109/TPAMI.1987.4767940
[6] M. Ye, X. Chen, Q. Li, J. Zeng, S. Yu. Depth from defocus measurement method based on liquid crystal lens. Optics Express, 26(22): 28413, 2018. DOI: 10.1364/OE.26.028413
[7] S. Emberger, L. Alacoque, A. Dupret, N. Fraval, J.-L. de Bougrenet de la Tocnaye. Evaluation of the key design parameters of liquid crystal tunable lenses for depth-from-focus algorithm. Applied Optics, 57(1): 85–91, 2018. DOI: 10.1364/AO.57.000085
[8] Y. Bai, X. Chen, J. Ma, J. Zeng, M. Ye. Transient property of liquid crystal lens and its application in extended depth of field imaging. Optics Communications, 473: 125974, 2020. DOI: 10.1016/j.optcom.2020.125974
[9] H. Xiao, Z. Liu, B. Tan, M. Ye. A depth sensor based on transient property of liquid crystal lens. Photonic Sensors, 13(2): 230230, 2023. DOI: 10.1007/s13320-022-0669-2
[10] Y.-H. Lee, G. Tan, T. Zhan, Y. Weng, G. Liu, F. Gou, F. Peng, N. V. Tabiryan, S. Gauza, S.-T. Wu. Recent progress in Pancharatnam–Berry phase optical elements and the applications for virtual/augmented realities. Optical Data Processing and Storage, 3(1): 79–88, 2017. DOI: 10.1515/odps-2017-0010
[11] M. Watanabe, S. K. Nayar. Telecentric optics for focus analysis. IEEE Transactions on Pattern Analysis and Machine Intelligence, 19(12): 1360–1365, 1997. DOI: 10.1109/34.643894
[12] G. Häusler. A method to increase the depth of focus by two step image processing. Optics Communications, 6(1): 38–42, 1972. DOI: 10.1016/0030-4018(72)90243-X
[13] E. R. Dowski, W. T. Cathey. Extended depth of field through wave-front coding. Applied Optics, 34(11): 1859, 1995. DOI: 10.1364/AO.34.001859
[14] Y.-J. Wang, X. Shen, Y.-H. Lin, B. Javidi. Extended depth-of-field 3D endoscopy with synthetic aperture integral imaging using an electrically tunable focal-length liquid-crystal lens. Optics Letters, 40(15): 3564, 2015. DOI: 10.1364/OL.40.003564
[15] M. Levoy, R. Ng, A. Adams, M. Footer, M. Horowitz. Light field microscopy. ACM Transactions on Graphics, 25(3): 924–934, 2006. DOI: 10.1145/1141911.1141976
[16] J. Geng. Structured-light 3D surface imaging: a tutorial. Advances in Optics and Photonics, 3(2): 128, 2011. DOI: 10.1364/AOP.3.000128