Abstract
Images acquired with point-scanning instruments, line-scanning instruments, and rolling shutter cameras are distorted by motion of the instrument or the scene. This distortion arises from the sequential capture of pixels or rows of pixels and is known as the rolling shutter effect. Here, we demonstrate the correction of rolling shutter distortion caused by in-plane motion with a dual-imaging technique inspired by strabismus, an eye misalignment condition. When the velocity observed in pairs of synchronously captured and misaligned images can be considered constant within each image row or column, the distortion estimation problem can be formulated as a system of linear equations describing the displacement of image strips along the slow scanning direction or as an optimization problem that maximizes the similarity between the two distortion-corrected images. Both methods can be modified to correct motion distortion caused by in-plane rotation and scaling changes. Strabismic image pairs, acquired with a point-scanning instrument and a dual-rolling shutter camera setup, are used to demonstrate both approaches.
Keywords: rolling shutter effect, motion distortion, scanning microscopy
1. Introduction
Scanning imaging instruments and rolling shutter cameras are ubiquitous in scientific, medical, and industrial applications as well as in end-user products. Point-scanning confocal and multiphoton microscopes have transformed biological and biomedical research by providing optical sectioning of intact live tissue and organisms.1,2 Light sheet microscopes, which also provide optical sectioning, deliver high imaging rates by employing rolling shutter cameras.3,4 Point- and line-scanning medical imaging instruments are widely used in diagnostic and treatment-monitoring applications, such as endoscopy5–11 and ophthalmoscopy.12–18 Rolling shutter cameras can be found among many other applications in smartphones, webcams, computer vision systems, robotics, unmanned aerial vehicles, and autonomous vehicles. Images captured with all these devices can exhibit motion distortion, a phenomenon commonly known as the rolling shutter effect (see Fig. 1).
Fig. 1.

Depiction of image distortion due to and motion during the capture of images with scanning instruments or rolling shutter cameras moving from top to bottom ( and constants).
Strategies for estimating motion in rolling shutter instruments can be broadly classified into four categories: motion model or prior knowledge-based approaches, multi-image capture, employing neural networks, and hybrid methods. Examples of these approaches include making assumptions about constant velocity or smooth velocity variations across sequences of consecutive frames.19–21 Other methods use information from orientation and position sensors synchronized with the rolling shutter to correct motion distortion22 or infer motion from assumptions about the geometry of image features, such as straight lines and vanishing directions.23 Among the most recent neural-network-based approaches, Cao et al.24 estimated distortion across image sequences through spatiotemporal modeling derived from the sequences themselves, whereas more traditional approaches rely on training sets of images—a strategy with limited generalizability, particularly in research settings where new sample types, imaging modalities, and pathologies are encountered regularly.25–27 Also recently, combinations of assumptions about velocity, learning, and the creation of undistorted images by combining two or more sequentially captured images are emerging, seeking to improve robustness, accuracy, and/or broadening applicability.28–31 Image distortion has also been estimated using two or more images captured with an additional synchronized device operating with opposite rolling shutter directions and registrations using landmarks32 or neural networks. A motion-correction approach now used in commercial point-scanning ophthalmic optical coherence tomography systems involves co-registering two or more sequential images acquired with orthogonal fast-scanning directions to mitigate motion distortion.33,34
Here, we demonstrate the measurement and correction of in-plane relative motion between imaging devices and the object or scene within the field of view, using a dual-imaging approach inspired by strabismus (eye misalignment). Distortion is estimated from two synchronous imaging channels that share the same scanning or rolling shutter direction but have offset fields of view. Strabismic imaging, as demonstrated below, represents an evolution of Luo et al.’s35 dual-wavelength imaging, eliminating longitudinal and transverse chromatic aberration, removing the need for an additional light source, increasing motion sampling, and reducing distortion errors at the image ends. The proposed algorithms for estimating distortion also improve upon those by Lee et al.9,11 and Harlow et al.,10 both of which rely on identifying image landmarks for registration. The proposed strabismic imaging addresses major limitations of most current rolling shutter correction methods, most notably the rapid variation of the motion velocity (amplitude and direction) during the acquisition of a single image and the need for training datasets. The former is simply due to the fact that, without assumptions of constant or smooth and monotonic variation of velocity across frames or specific assumptions about the presence of geometrical features within the field of view, the distortion estimation is an ill-posed mathematical problem.
2. Theory
2.1. Strabismic Imaging Principle
Let us consider a single- or multi-channel point-scanning instrument, line-scanning instrument, or a dual-rolling shutter camera system that captures two synchronized images whose fields of view are offset along the (slow) scanning direction, which we assume here runs from the top to the bottom of the images. We also assume that these images have been corrected for scanning velocity variation and/or optical distortion,36–38 such that the image pixels lie on a regular rectangular grid parallel to the axes of a Cartesian coordinate system. The pixel values of the primary strabismic image and secondary image of scene intensity can then be described as
| (1) |
and
| (2) |
where and are the spacing between pixel rows and columns, respectively; and are functions that describe the scene movement in relation to the instrument; and is the spatial offset among fields of view (see Fig. 2). In line-scanning instruments and rolling shutter cameras, all the pixels in each row are captured simultaneously, and thus, the motion is only a function of the row index . In point-scanning instruments, however, pixels along each row are captured sequentially, but often sufficiently fast to consider the motion negligible within each row. When this is the case, strabismic images for all three types of instruments can be described as
| (3) |
and
| (4) |
where for convenience and without loss of generality, we express all distances in units of pixel separation (i.e., ).
Fig. 2.

Strabismic imaging for estimating motion distortion in scanning instruments and rolling shutter cameras, in which two simultaneously captured images from the same scene have offset fields of view.
As will be shown later, estimating motion functions from a single pair of strabismic images can be formulated as either two independent sets of coupled finite difference equations derived from coregistering image strip pairs or as an optimization problem in which the images are iteratively distorted to either minimize a cost function or to maximize a similarity metric. In both approaches, a horizontal offset is acceptable provided it remains substantially below 50% of the image width, whereas vertical overlap is required, and must be substantially less than 50% of the image height. These offsets must be experimentally measured and incorporated in the motion estimation to avoid misinterpreting them as artifacts caused by a constant velocity assumption. The offsets can be determined by co-registering a pair of strabismic images from a stationary object, for example, by maximizing their normalized weighted cross-correlation (NWCC) or their zero-mean normalized weighted cross-correlation (ZNWCC). The weighting is an option that enables the use of images with non-rectangular boundaries and the prioritization of image regions based on desired characteristics, such as signal-to-noise ratio.39 The registration accuracy can be improved by upsampling the strabismic images, upsampling the ZNWCC function, or applying iterative optimization methods.40
We now introduce two formulations for describing and estimating motion functions that describe in-plane translations. Both formulations can be extended to account for rotation and scaling changes during the image capture, as we discuss later.
2.2. Linear Algebra Solutions
Each image from the scanning instruments considered here can be viewed as consisting of strips formed by contiguous rows. By coregistering strip pairs, one from each image, we derive a set of finite-difference equations for the motion functions, which can then be solved by computing a generalized inverse of the system matrix.41–43 In this way, a strip centered on row with radius can be written as
| (5) |
with , whereas a strip in the second image centered on would be
| (6) |
The relative strip shifts and can be estimated using registration methods, such as the maximization of the strips NWCC or ZNWCC functions,39 both of which are feature-agnostic. Here, we use the latter because it is immune to gain and offset differences between the image pair. The accuracy of the strip coregistration using the ZNWCC is limited by distortion within the strips, which we address through multiple cycles of motion estimation and correction. After each iteration, the image strips become less and less distorted to the point that Eqs. (5) and (6) no longer depend on , allowing us to define strip displacement as
| (7) |
and
| (8) |
which can be rearranged as
| (9) |
and
| (10) |
In their original work, Luo et al.35 used a set of strips defined by , with denotes the floor function, and . In this way, the vertical separation between strip pairs is the vertical offset among the strabismic imaging channels, which could be too coarse, as depicted on the left side of Fig. 3. This choice of strip centers leads to two undetermined sets of coupled equations, one for and one for , with one free variable each that shifts the motion function in relation to the origin of the system of coordinates. Therefore, in what follows, we set the first value of both motion functions to zero, effectively making the image’s top-left pixel the origin of coordinates.
Fig. 3.

Luo et al.35 (a) and proposed (b) motion estimation from simultaneously captured strabismic image pairs (blue and orange rectangles) by co-registering image strip pairs (transparent red rectangles and dark red lines indicating their centers) with row indices and along the (slow) scanning or rolling shutter direction. In Luo et al.’s method, the strip pairs are naturally coupled through spacing that matches the vertical image offset (rounded off by the floor function). In the proposed method, higher motion sampling is achieved through an additional set of strips to create a coupled set of equations (black arrows between strip centers), with the plots at the bottom depicting motion functions and their sampling.
To improve Luo et al.’s method, we propose sets of strips with uniform but arbitrary vertical separation such that to increase the motion function sampling as desired, also generating two sets of coupled equations as before. We achieve this by selecting strips in the first strabismic image with central row with , each of which is coregistered with two strips in the second strabismic image with central rows and , as shown on the right side of Fig. 3. It is critical that the height and vertical separation of each pair of image strips used to create an equation have adequate overlap for coregistration.
The resulting set of motion function finite differences derived from Eq. (9) can be expressed as the matrix equations
| (11) |
and
| (12) |
in which the dark bold font indicates the separation among matrix elements, with all matrix elements not associated with the differences being zero. Solutions to this system of equations can be found by calculating generalized inverse matrices, such as the Moore–Penrose pseudoinverse, which we use here both because it provides least-squares solutions and its availability in widely used programming languages.44–46 If the strip spacing is larger than one pixel, then the resulting sequence of motion function values can be interpolated as needed. Irrespective of the value of , the estimated and values should be low pass filtered to mitigate coregistration errors due to discretization and image distortion within each strip. As mentioned earlier, errors in the motion functions caused by distortion within each strip can be mitigated by iterative measurement and correction of image distortion by composing the estimated motion function values as described next.
Let us index consecutive motion-function estimates by Roman numerals: I denotes the initial images, II denotes the first distortion-corrected images, III denotes the second distortion-corrected images, and so on. For a pixel with initial indices , we have
| (13) |
and
| (14) |
When combined, these equations give
| (15) |
which allows writing the composed motion function as
| (16) |
and, similarly
| (17) |
This compounding can be repeated to calculate the distortion of corrected images from the original images (i.e., with full distortion) through a single pixel interpolation, rather than multiple interpolations that would degrade image fidelity.
2.3. Optimization Solutions
Motion estimation in strabismic imaging can also be formulated as an optimization problem, in which the opposite motion functions (i.e., and ) are sought to minimize the difference among the overlapping image regions,
| (18) |
or to maximize an image similarity metric, such as the ZNWCC, over the overlapping image regions,
| (19) |
Either of these undetermined equations can be solved by imposing smoothness constraints and/or regularization terms, as is commonly done in optical flow problems.47
Here, we implemented the ZNWCC maximization as depicted in Fig. 4, by varying a number of uniformly spaced and samples, with their first and last samples assigned to the first and last image rows, respectively. As our smoothness/regularization constraint, these values were linearly interpolated across all image rows and then smoothed with a Gaussian filter whose standard deviation equals the initial sample spacing. To mitigate filtering artifacts near the top and bottom of the image, the and domains were extended by mirror reflection, inversion, and offsetting to ensure continuity of the motion functions and their first derivatives at the image top and bottom. During the iterative optimization process, the and samples were varied one at a time through the modified version of Powell’s minimization algorithm48 in Python SciPy module, version 1.15.2. The optimization convergence was facilitated by providing the motion functions estimates from the linear algebra approach as the initial sample values, reducing calculation time and ensuring that the resulting solutions are equal to or better than those from the linear algebra method. As with the linear algebra approach described earlier, the initial values of both motion functions are set to zero, without loss of generality.
Fig. 4.

Proposed optimization algorithm for estimating motion distortion in strabismic image pairs (blue and orange shapes), by applying iterative horizontal and vertical deformations along the image rows to maximize the ZNWCC between the image pair.
3. Instruments
Two custom instruments were used to demonstrate motion estimation from strabismic image pairs: a point-scanning instrument and a dual-rolling shutter camera setup, with the latter being equivalent to a line-scanning instrument.
3.1. Point-Scanning Ophthalmoscope
Pairs of strabismic images were captured using a custom adaptive optics scanning light ophthalmoscope (AOSLO), which can be thought of as a reflectance confocal microscope with a horizontal optical scanner resonating at 13.8 KHz and a non-resonant vertical scanner operating at 14.9 Hz.49 This instrument was modified by replacing the beam splitter that couples the source and detector optics in the reflection and transmission paths with an uncoated glass substrate 2.8 mm thick with a 5-arcmin angle among its surfaces. This glass wedge reflects two laterally shifted beams with comparable intensity and a small tilt among them, chosen so that the beams overlap at pupil conjugate planes and are separated in image space by 0.3 deg. The offset between the primary and secondary fields of view was adjusted by rotating the glass wedge. An additional light detector was used to capture the secondary strabismic image synchronously with the primary detector at a rate of 40 MHz.
3.2. Dual-Rolling Shutter Camera Setup
Pairs of strabismic images were captured using a custom setup with two synchronous monochromatic rolling shutter cameras (BFS-U3-63S4M-C by Teledyne FLIR, Wilsonville, Oregon, United States), under temporally and spatially incoherent illumination from two task lights, as depicted in Fig. 5. The optical paths of the two cameras were combined using a beam splitting cube, such that they shared the same lenses. Images from the camera in the beam splitter reflection path were flipped left–right prior to strabismic image processing. The cameras were operated with 2 × 2 pixel binning and 0.1-ms exposure.
Fig. 5.

Diagram and picture of strabismic imaging setup using two synchronized rolling shutter cameras ( and are rotation and vertical translation stages, respectively; BS is a beam splitting cube; and denotes the focal length in units of mm).
4. Human Subject
One subject with no known ocular pathology was recruited for retinal imaging with the custom adaptive optics ophthalmoscope. Research procedures and informed consent followed the tenets of the Declaration of Helsinki and were approved by the institutional review board of Stanford University. Prior to imaging, pupil dilation and cycloplegia were achieved with one drop of 2.5% phenylephrine and one drop of 1% tropicamide. A bite-bar with a soft dental impression was attached to a manually operated three-axis translation stage to align and stabilize the subject during imaging.
5. Experiments
After capturing strabismic image pairs with the AOSLO and dual-rolling shutter camera setup, we estimated initial motion functions for each pair using the linear algebra approach and subsequently refined them via the optimization method. The quality of the motion distortion correction was quantified as the maximum of the ZNWCC between the distortion corrected image pair, a normalized similarity metric that attains a value of one only when the two images are identical over the overlapping regions. Departures from unity should not always be interpreted as poor distortion correction; they can arise from differences among imaging channels, such as vignetting and blur variation across the field of view.
To facilitate the visualization of differences among overlapping images, we display them in blue and orange, complementary colors to accommodate common color vision deficiencies. When overlapping pixels have similar values, they appear monochromatic (black-grey-white), and when they differ, they appear colored. An overall orange or blue tint, as in Fig. 6, indicates differences in detector gain and/or offset.
Fig. 6.

Strabismic image pairs of a Stanford logo acquired with a point-scanning instrument (slow scanning from top to bottom) distorted by left-to-right sinusoidal motion and their respective outlines showing their relative positions (top left) and estimated motion (top right). Overlapped scanning and optical distortion-corrected images (bottom left) and corresponding motion corrected images. For this image pair, the linear algebra approach was implemented as a single iteration with one 9-pixel high strip per line (i.e., ) and refined by three optimization iterations with 8.6-pixel sample spacing.
5.1. Point-Scanning Ophthalmoscope
A printed Stanford University logo was imaged with the AOSLO while inducing sinusoidal motion mostly along the horizontal direction with ~25 and ~50 pixels in amplitude. The results from the strabismic image processing for the strongest motion are shown in Fig. 6, demonstrating the correction of the sinusoidally varying horizontal shear and vertical compression/expansion. The small differences among the motion functions indicate a small but non-negligible (>1 pixel) improvement of the optimization over the linear algebra solution.
The images in Fig. 7 compare distortion-corrected images with ground-truth images collected with no motion for both imaging channels. The ZNWCC between corresponding strabismic image pairs is 0.93 in the no-motion condition but remains below unity due to the differences among imaging channels. Image pairs with motion distortion and initial ZNWCC values of 0.80 and 0.75 improve after distortion correction to 0.93 and 0.92, respectively, approaching the ground-truth level and illustrating the effectiveness of the proposed approach. This improvement is consistent with per-channel comparisons of distortion-corrected images against their corresponding ground-truth images, whether quantified by ZNWCC or by peak signal-to-noise ratio (PSNR).50
Fig. 7.

Strabismic image pairs of a Stanford logo acquired with a point-scanning instrument (slow scanning from top to bottom) and their respective outlines showing their relative positions. The top row shows the ground truth (no motion), the second and fourth rows show left-to-right sinusoidal motion distortion, and the third and fifth rows show the corresponding distortion-corrected images (linear algebra first, one iteration with 9-pixel high strips, , and optimization approach later, three iterations with 8.6-pixel sample spacing). The numerical values along the image central column are the ZNWCC values for the respective strabismic image pairs, whereas the values on top of the overlapping images are the ZNWCC and the PSNR.
AOSLO retinal imaging provides an ideal test bed for evaluating strabismic image distortion correction because of the constant involuntary eye movements, including saccades, as illustrated in Figs. 8 and 9. The photoreceptor mosaic shown in Fig. 8 serves as a test object with no lines or vanishing directions such as those assumed in prior rolling shutter correction strategies.23 The mosaic of small bright image features over the dark background, the photoreceptor inner/outer segments, provides visual validation of the estimated motion over the overlapping region, despite substantial distortion at the top of the images. The difference plots show how the optimization approach improves the linear algebra solution by ~0.3 pixel overall (standard deviation across all image rows), increasing the ZNWCC by ~1.5%.
Fig. 8.

Strabismic reflectance image pair of a human photoreceptor mosaic acquired with a point-scanning confocal ophthalmoscope (slow scanning from top to bottom), their respective outlines showing their relative positions (top left) and the estimated motion (top right). The images are shown before and after correction of the distortion caused by involuntary fixational eye movement, with the linear algebra approach first (one iteration with 5-pixel high strip, ), and then refined by three optimization iterations with 8.6-pixel sample spacing.
Fig. 9.

Strabismic reflectance image pair of a human foveal pit acquired with a point-scanning confocal ophthalmoscope (slow scanning from top to bottom), their respective outlines showing their relative positions (top left) and the estimated motion (top right). The images are shown before and after correction of the distortion caused by involuntary fixational eye movement, with the linear algebra approach first (one iteration with 5-pixel high strip, ), and then refined by three optimization iterations with 8.6-pixel sample spacing.
A particular AOSLO image pair of the bottom of the foveal pit in Fig. 9 exhibits a more severe distortion along both horizontal and vertical directions due to a strong saccade. In this case, the linear algebra estimation was performed in two iterations, due to the initial within-strip distortion degrading the motion estimation. The distortion correction in these images, despite having fewer and less well-defined structures, exemplifies that the proposed motion estimation is feature-agnostic and can cope with fairly severe motion distortion. Motion correction here also shows a substantial ZNWCC increase with both methods, with the optimization providing an improvement over the linear algebra solution of ~0.8 pixel standard deviation and 0.8% ZNWCC.
5.2. Dual-Rolling Shutter Camera Setup
The dual-camera setup was used to image a different university logo with random in-plane motion induced through a mechanical oscillator. The raw and processed images in Fig. 10 show correction of the motion distortion that is comparable to that in the AOSLO images, both with the linear algebra and optimization approaches. The same mechanical oscillator and optical setup with a different lens were used to image through a window to provide example images relevant to unmanned aerial vehicles and autonomous vehicles with within-frame velocity changes (see Fig. 11).
Fig. 10.

Strabismic image pairs of a Stanford logo acquired with two synchronous rolling shutter cameras (rolling from top to bottom) distorted by in-plane motion, with their respective outlines showing their relative positions (top left) and the estimated motion (top right). The images are shown before and after correction of the distortion caused by random movement of a mechanical oscillator, with the linear algebra approach first (one iteration with 21-pixel high strip, ), and then refined by three optimization iterations with 13.3-pixel sample spacing.
Fig. 11.

Strabismic image pairs acquired with two synchronous rolling shutter cameras (rolling from top to bottom) aiming through a window and distorted by in-plane motion, with their respective outlines showing their relative positions (top left) and the estimated motion (top right). The images are shown before and after correction of the distortion caused by random movement of a mechanical oscillator, with the linear algebra approach first (one iteration with 21-pixel high strip, ), and then refined by one optimization iteration with 93.75-pixel sample spacing.
5.3. Timing
All strabismic image pairs were processed in a computer with an i9-14900K central processing unit (CPU) by Intel (Santa Clara, California, United States) running the operating system Windows 11 (Microsoft Corp., Redmond, Washington, United States), and a GeForce RTX 4070 graphics processing unit (GPU) by Nvidia (Santa Clara, California, United States). The motion estimation and correction software was written in the interpreted language Python, version 3.13, with the execution times shown in Table 1 below. The linear algebra approach was partially implemented for GPU but with no image strip pair processing parallelization or data transfer optimization. The optimization image processing approach was implemented to execute in CPU using a single thread.
Table 1.
Strabismic imaging motion distortion estimation timing.
| Figure No. | Image size (pix) | Linear algebra | Optimization |
|---|---|---|---|
| 6 | 710 × 671 | 10 s (one iteration, 9-pix strip height) | 242 s (three iterations, 8.6-pix sample spacing) |
| 8 | 710 × 671 | 5 s (one iteration, 5-pix strip height) | 258 s (three iterations, 8.6-pix sample spacing) |
| 9 | 710 × 671 | 24 s (two iterations, 21-pix strip height) | 826 s (five iterations, 8.6-pix sample spacing) |
| 10 | 940 × 966 | 67 s (one iteration, 21-pix strip height) | 439 s (three iterations, 13.3-pix sample spacing) |
6. Rotation and Scaling
Strabismic imaging can also be used to estimate and correct local (as opposed to global) rotation and changes in scaling. This can be achieved, for example, by cropping each image pair to create two pairs of narrow strabismic images, one capturing the left side of the field of view and the other capturing the right side, as depicted in Fig. 12. After using the algorithm described earlier to estimate the horizontal and vertical motion functions for the left and right sides of the images, local rotation and scaling changes can be estimated by comparing the rotation and changes in separation of corresponding left–right strip pair centers, respectively.51 The generalization of the optimization approach to estimate rotation and scaling changes requires allowing the and samples on the left and right sides of the image to vary independently, rather than just rigidly, with all the values in between those samples being linearly interpolated.
Fig. 12.

Modification of the method presented in Fig. 3 to estimate translations, rotations, and scaling changes during the simultaneous acquisition of strabismic image pairs (blue and orange rectangles) by co-registering image strip pairs for the left and right regions of interest with the plots depicting motion functions and their sampling. Note that all functions are set to start at zero.
7. Summary
A dual-imaging method, termed strabismic imaging, was proposed to measure and correct distortion arising from in-plane object or scene motion in point-scanning instruments, line-scanning instruments, and rolling shutter cameras. The proposed motion estimation algorithms assume that image distortion is constant within each image row or column. This condition is satisfied by all line-scanning instruments and rolling shutter cameras and is a reasonable approximation for most point-scanning instruments. In addition to delivering the same frame rate as using a single channel, strabismic imaging allows motion correction in single image pairs and without additional information, and it is image feature-agnostic.
The estimation of the horizontal and vertical motion functions was formulated as a set of coupled linear equations corresponding to image strips along the (slow) scanning direction and as an optimization problem. The linear algebra approach is parallelizable and thus suitable for real-time implementation, whereas the optimization approach requires the use of sequential iterative algorithms that, although slower, can provide superior distortion correction. Both methods can be generalized to estimate and correct for object/scene rotation by comparing the motion functions of the left and right sides of the image. Also, the small temporal shift between the strabismic imaging of any given feature enables the measurement of fast intensity changes and velocity of moving objects within the field of view (e.g., blood cells52), also providing the ability to measure functional changes in live cells and tissues.
The ability to correctly estimate motion in the linear algebra approach depends on the spacing between the strips, which corresponds to the motion sampling, and the strip height, which can be thought of as a low-pass averaging filter. Also, the strip registration will fail (irrespective of the registration method) whenever the motion along the (slow) scanning axis is so severe that the features in one strip do not appear in the corresponding strip from the other strabismic image. The optimization approach can diverge or take long to converge whenever the motion is severe and, thus, could benefit from using the linear algebra approach to obtain an initial motion estimation, as demonstrated here. The accuracy of the motion estimation using both methods can be improved by upsampling the strabismic images, upsampling the strip ZNWCC function estimates, or increasing the number of optimization samples.
In scanning instruments, strabismic imaging can be implemented with an additional light detector and an adequate beam splitting element, without modifying the scanning optics or requiring an additional light source. Strabismic image pairs captured with point-scanning and dual-rolling shutter camera instruments were used to illustrate the motion estimation methods, which can also be applied to moving object(s) on a stationary background, via a pre-segmentation step and using the ZNWCC for registration.
Acknowledgments
Research to Prevent Blindness (Departmental Award); National Institutes of Health (Grant Nos. P30EY026877, R01EY031360, R01EY032147, R01EY032669, and OT2OD038128). This research was, in part, funded by the Advanced Research Projects Agency for Health (ARPA-H). The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the United States Government.
Biographies
Gastón A. Ayubi is currently a postdoctoral scholar at Stanford University. He received his BS degree in physics in 2014, his BS degree in electrical engineering in 2016, and his PhD in physics in 2020, all from the Universidad de la República, Uruguay. His current interests include retinal imaging, adaptive optics, and quantitative phase imaging. He is a member of SPIE.
Karteek Kunala is a research engineer at Stanford University. He received his joint BSc and MSc degrees in physics in 2014 from the University of Hyderabad, India, and his MS degree and PhD in optical science and engineering in 2018 from the University of North Carolina at Charlotte. His current interests include optical imaging, ophthalmic instrumentation, and vision science.
Bartlomiej Kowalski contributed to this work while he was a software developer at Stanford University. He is currently a software developer at Amazon.com, Inc. He received his joint BS and MS degrees in computer science, software engineering, and information systems in 2010 from Politechnika Częstochowska, Poland. His current interests include hardware programming, optical instrumentation, optical coherence tomography, and pupil tracking.
Aubrey Hargrave is a research scientist at Stanford University. She received her BA degree in biological sciences in 2008 from the University of Chicago and her PhD in vision science and physiological optics in 2017 from the University of Houston. Her current interests include adaptive optics imaging of the retina, vision science, and ocular inflammation.
Alfredo Dubra is a professor of ophthalmology at Stanford University. He received his BS degree in physics in 1998 and his MS degree in physics in 2000, both from the Universidad de la República, Uruguay. He received his PhD in physics from Imperial College London, United Kingdom, in 2004. His research focuses on ophthalmic instrumentation, adaptive optics, optical imaging, optical design, and pupil tracking. He is a member of SPIE.
Footnotes
Disclosures
The authors declare no conflicts of interest.
Code and Data Availability
Software and data underlying the results presented in this paper are not publicly available at this time but may be obtained from the authors upon reasonable request.
References
- 1.Pawley J, Handbook of Biological Confocal Microscopy, Vol. 236, Springer Science & Business Media; (2006). [Google Scholar]
- 2.Wilson T, Confocal Microscopy, Vol. 426, Academic Press; London: (1990). [Google Scholar]
- 3.Stelzer EHK et al. , “Light sheet fluorescence microscopy,” Nat. Rev. Methods Primers 1, 73 (2021). [Google Scholar]
- 4.Strobl F et al. , “Improving your four-dimensional image: traveling through a decade of light-sheet-based fluorescence microscopy research,” Nat. Protoc 12, 1103–1109 (2017). [DOI] [PubMed] [Google Scholar]
- 5.Jabbour JM et al. , “Confocal endomicroscopy: instrumentation and medical applications,” Ann. Biomed. Eng 40, 378–397 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Neumann H et al. , “Confocal laser endomicroscopy: technical advances and clinical applications,” Gastroenterology 139, 388–392.e2 (2010). [DOI] [PubMed] [Google Scholar]
- 7.Kiesslich R et al. , “Confocal laser endomicroscopy,” Gastrointest. Endosc. Clin. North Am 15, 715–731 (2005). [Google Scholar]
- 8.Hoffman A et al. , “Confocal laser endomicroscopy: technical status and current indications,” Endoscopy 38, 1275–1283 (2006). [DOI] [PubMed] [Google Scholar]
- 9.Lee AMD et al. , “Depth-multiplexed optical coherence tomography dual-beam manually-actuated distortion-corrected imaging (DMDI) with a micromotor catheter,” Biomed. Opt. Express 9, 5678–5690 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Harlow M et al. , “Dual-beam manually actuated distortion-corrected imaging (DMDI): two dimensional scanning with a single-axis galvanometer,” Opt. Express 26, 18758–18772 (2018). [DOI] [PubMed] [Google Scholar]
- 11.Lee AMD et al. , “Dual-beam manually-actuated distortion-corrected imaging (DMDI) with micromotor catheters,” Opt. Express 25, 22164–22177 (2017). [DOI] [PubMed] [Google Scholar]
- 12.Webb RH et al. , “Confocal scanning laser ophthalmoscope,” Appl. Opt 26, 1492–1499 (1987). [DOI] [PubMed] [Google Scholar]
- 13.Mainster MA et al. , “Scanning laser ophthalmoscopy: clinical applications,” Ophthalmology 89, 852–857 (1982). [DOI] [PubMed] [Google Scholar]
- 14.Webb RH et al. , “Flying spot TV ophthalmoscope,” Appl. Opt 19, 2991–2997 (1980). [DOI] [PubMed] [Google Scholar]
- 15.Hammer D et al. , “Line-scanning laser ophthalmoscope,” J. Biomed. Opt 11, 041126 (2006). [DOI] [PubMed] [Google Scholar]
- 16.Vienola KV et al. , “Parallel line scanning ophthalmoscope for retinal imaging,” Opt. Lett 40, 5335–5338 (2015). [DOI] [PubMed] [Google Scholar]
- 17.Schuman JS et al. , Optical Coherence Tomography of Ocular Diseases, CRC Press; (2024). [Google Scholar]
- 18.Huang D et al. , “Optical coherence tomography,” Science 254, 1178–1181 (1991). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Zhou Y et al. , “A two-step approach for the correction of rolling shutter distortion in UAV photogrammetry,” ISPRS J. Photogramm. Remote Sens 160, 51–66 (2020). [Google Scholar]
- 20.Liang C-K et al. , “Rolling shutter distortion correction,” Proc. SPIE 5960, 59603V (2005). [Google Scholar]
- 21.Liang CK et al. , “Analysis and compensation of rolling shutter effect,” IEEE Trans. Image Process 17, 1323–1330 (2008). [DOI] [PubMed] [Google Scholar]
- 22.Nicklin SP et al. , “Rolling shutter image compensation,” Lect. Notes Comput. Sci 4434, 402–409 (2007). [Google Scholar]
- 23.Purkait P et al. , “Rolling shutter correction in Manhattan World,” in Proc. IEEE Int. Conf. Comput. Vis, pp. 882–890 (2017). [Google Scholar]
- 24.Cao R et al. , “Neural space–time model for dynamic multi-shot imaging,” Nat. Methods 21, 2336–2341 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Zhuang B et al. , “Learning structure-and-motion-aware rolling shutter correction,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit, pp. 4551–4560 (2019). [Google Scholar]
- 26.Rengarajan V et al. , “Unrolling the shutter: CNN to correct motion distortions,” in Proc. IEEE Conf. Comput. Vis. Pattern Recognit, pp. 2291–2299 (2017). [Google Scholar]
- 27.Liu P et al. , “Deep shutter unrolling network,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit, pp. 5941–5949 (2020). [Google Scholar]
- 28.Fan B et al. , “Context-aware video reconstruction for rolling shutter cameras,” in IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), pp. 17551–17561 (2022). [Google Scholar]
- 29.Cao M et al. , “Learning adaptive warping for real-world rolling shutter correction,” in IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), pp. 17764–17772 (2022). [Google Scholar]
- 30.Qu D et al. , “Towards nonlinear-motion-aware and occlusion-robust rolling shutter correction,” in IEEE/CVF Int. Conf. Comput. Vis. (ICCV), pp. 10646–10654 (2023). [Google Scholar]
- 31.Qu D et al. , “Fast rolling shutter correction in the wild,” IEEE Trans. Pattern Anal. Mach. Intell 45, 11778–11795 (2023). [DOI] [PubMed] [Google Scholar]
- 32.Albl C et al. , “From two rolling shutters to one global shutter,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit, pp. 2505–2513 (2020). [Google Scholar]
- 33.Kraus MF et al. , “Motion correction in optical coherence tomography volumes on a per A-scan basis using orthogonal scan patterns,” Biomed. Opt. Express 3, 1182–1199 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.LaRocca F et al. , “Handheld simultaneous scanning laser ophthalmoscopy and optical coherence tomography system,” Biomed. Opt. Express 4, 2307–2321 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Luo T et al. , “Template free eye motion correction for scanning systems,” Opt. Lett 46, 753–756 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Kowalski B et al. , “Correction of non-uniform angular velocity and sub-pixel jitter in optical scanning,” Opt. Express 30, 112–124 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Ayubi GA and Dubra A, “Robust real-time estimation of non-uniform angular velocity and sub-pixel jitter in images captured with resonant scanners,” Opt. Express 31, 44199–44211 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Akondi V et al. , “Telecentric model eye for correction of image distortion in adaptive optics ophthalmoscopes,” Biomed. Opt. Express 16, 2767–2791 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39.Ayubi GA et al. , “Normalized weighted cross correlation for multi-channel image registration,” Opt. Continuum 3, 649–665 (2024). [Google Scholar]
- 40.Guizar-Sicairos M et al. , “Efficient subpixel image registration algorithms,” Opt. Lett 33, 156–158 (2008). [DOI] [PubMed] [Google Scholar]
- 41.Press WH, Numerical Recipes: The Art of Scientific Computing, 3rd Edition, Cambridge University Press; (2007). [Google Scholar]
- 42.Rao CR and Mitra SK, “Generalized inverse of a matrix and its applications,” in Proc. Sixth Berkeley Symp. Math. Stat. Probab, University of California Press, pp. 601–620 (1972). [Google Scholar]
- 43.Scales JA and Gersztenkorn A, “Robust methods in inverse theory,” Inverse Probl. 4, 1071 (1988). [Google Scholar]
- 44.Moore EH, “On the reciprocal of the general algebraic matrix,” Bull. Am. Math. Soc 26, 294–295 (1920). [Google Scholar]
- 45.Penrose R, “A generalized inverse for matrices,” in Math. Proc. Cambridge Philos. Soc, Cambridge University Press, pp. 406–413 (1955). [Google Scholar]
- 46.Penrose R, “On best approximate solutions of linear matrix equations,” in Math. Proc. Cambridge Philos. Soc, Cambridge University Press, pp. 17–19 (1956). [Google Scholar]
- 47.Fortun D et al. , “Optical flow modeling and computation: a survey,” Comput. Vis. Image Underst 134, 1–21 (2015). [Google Scholar]
- 48.Powell MJ, “An efficient method for finding the minimum of a function of several variables without calculating derivatives,” Comput. J 7, 155–162 (1964). [Google Scholar]
- 49.Steven S et al. , “Reflective broadband adaptive optics scanning ophthalmoscope with steering and large refractive error range,” manuscript in preparation (2026).
- 50.Horé A and Ziou D, “Image quality metrics: PSNR vs. SSIM,” in Int. Conf. Pattern Recognit, pp. 2366–2369 (2010). [Google Scholar]
- 51.Stevenson S and Roorda A, “Correcting for miniature eye movements in high-resolution scanning laser ophthalmoscopy,” Proc. SPIE 5688, 145–151 (2005). [Google Scholar]
- 52.de Castro A et al. , “Rapid high resolution imaging with a dual-channel scanning technique,” Opt. Lett 41, 1881–1884 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
Software and data underlying the results presented in this paper are not publicly available at this time but may be obtained from the authors upon reasonable request.
