Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
JOINT ROLLING SHUTTER IMAGE STITCHING AND RECTIFICATION
Document Type and Number:
WIPO Patent Application WO/2021/178172
Kind Code:
A1
Abstract:
A computer-implemented method executed by at least one processor for applying rolling shutter (RS)-aware spatially varying differential homography fields for simultaneous RS distortion removal and image stitching is presented. The method includes inputting (701) two consecutive frames including RS distortions from a video stream, performing (703) keypoint detection and matching to extract correspondences between the two consecutive frames, feeding (705) the correspondences between the two consecutive frames into an RS-aware differential homography estimation component to filter out outlier correspondences, sending (707) inlier correspondences to an RS-aware spatially varying differential homography field estimation component to compute an RS-aware spatially varying differential homography field, and using (709) the RS-aware spatially varying differential homography field in an RS stitching and correction component to produce stitched images with removal of the RS distortions.

Inventors:
ZHUANG BINGBING (US)
TRAN QUOC-HUY (US)
Application Number:
PCT/US2021/019350
Publication Date:
September 10, 2021
Filing Date:
February 24, 2021
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
NEC LAB AMERICA INC (US)
International Classes:
G06T5/50; G06T5/00; H04N5/369
Foreign References:
US20170032503A12017-02-02
US20150062357A12015-03-05
US20190058811A12019-02-21
Other References:
LAO YIZHEN; AIT-AIDER OMAR: "Rolling Shutter Homography and its Applications", IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, IEEE COMPUTER SOCIETY., USA, vol. 43, no. 8, 2 March 2020 (2020-03-02), USA, pages 2780 - 2793, XP011864319, ISSN: 0162-8828, DOI: 10.1109/TPAMI.2020.2977644
ZHUANG BINGBING; CHEONG LOONG-FAH; LEE GIM HEE: "Rolling-Shutter-Aware Differential SfM and Image Rectification", 2017 IEEE INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV), IEEE, 22 October 2017 (2017-10-22), pages 948 - 956, XP033282951, DOI: 10.1109/ICCV.2017.108
Attorney, Agent or Firm:
BITETTO, James, J. (US)
Download PDF:
Claims:
WHAT IS CLAIMED IS:

1. A computer-implemented method executed by at least one processor for applying rolling shutter (RS)-aware spatially varying differential homography fields for simultaneous RS distortion removal and image stitching, the method comprising: inputting (701) two consecutive frames including RS distortions from a video stream; performing (703) keypoint detection and matching to extract correspondences between the two consecutive frames; feeding (705) the correspondences between the two consecutive frames into an RS- aware differential homography estimation component to filter out outlier correspondences ; sending (707) inlier correspondences to an RS-aware spatially varying differential homography field estimation component to compute an RS-aware spatially varying differential homography field; and using (709) the RS-aware spatially varying differential homography field in an RS stitching and correction component to produce stitched images with removal of the RS distortions.

2. The method of claim 1 , wherein the outlier correspondences are filtered out by employing robust estimation with the RS-aware differential homography estimation component and remaining inlier correspondences are sent to the RS-aware spatially varying differential homography estimation component.

3. The method of claim 1, wherein the RS-aware spatially varying differential homography field is derived under a constant acceleration motion assumption regarding an RS camera capturing the video stream.

4. The method of claim 1, wherein a minimal solver is applied to account for scanline varying camera poses of an RS camera capturing the video stream.

5. The method of claim 1, wherein a relative motion between two first scanlines of the two consecutive frames are parameterized.

6. The method of claim 5, wherein poses corresponding to all other scanlines are obtained by interpolation.

7. The method of claim 1, wherein the RS-aware spatially varying differential homography field is given as: where is defined as and are pre- defined scale and regularization parameters, k is a pure motion parameter independent of a scene, are constraints, x is an image point, y1,y2 are scanlines, h is a total number of scanlines, and is a scale describing a constant acceleration motion.

8. A system for applying rolling shutter (RS)-aware spatially varying differential homography fields for simultaneous RS distortion removal and image stitching, the system comprising: a memory; and a processor in communication with the memory, wherein the processor runs program code to: input (701) two consecutive frames including RS distortions from a video stream; perform (703) keypoint detection and matching to extract correspondences between the two consecutive frames; feed (705) the correspondences between the two consecutive frames into an RS -aware differential homography estimation component to filter out outlier correspondences ; send (707) inlier correspondences to an RS-aware spatially varying differential homography field estimation component to compute an RS-aware spatially varying differential homography field; and use (709) the RS-aware spatially varying differential homography field in an RS stitching and correction component to produce stitched images with removal of the RS distortions.

9. The system of claim 8, wherein the outlier correspondences are filtered out by employing robust estimation with the RS-aware differential homography estimation component and remaining inlier correspondences are sent to the RS-aware spatially varying differential homography estimation component.

10. The system of claim 8, wherein the RS-aware spatially varying differential homography field is derived under a constant acceleration motion assumption regarding an RS camera capturing the video stream.

11. The system of claim 8, wherein a minimal solver is applied to account for scanline varying camera poses of an RS camera capturing the video stream.

12. The system of claim 8, wherein a relative motion between two first scanlines of the two consecutive frames are parameterized.

13. The system of claim 12, wherein poses corresponding to all other scanlines are obtained by interpolation.

14. The system of claim 1, wherein the RS-aware spatially varying differential homography field is given as: where is defined as and are pre defined scale and regularization parameters, k is a pure motion parameter independent of a scene, bi and ui are constraints, x is an image point, y1, y2 are scanlines, h is a total number of scanlines, and is a scale describing the constant acceleration motion.

15. A non-transitory computer-readable storage medium comprising a computer-readable program for applying rolling shutter (RS)-aware spatially varying differential homography fields for simultaneous RS distortion removal and image stitching, wherein the computer-readable program when executed on a computer causes the computer to perform the steps of: inputting (701) two consecutive frames including RS distortions from a video stream; performing (703) keypoint detection and matching to extract correspondences between the two consecutive frames; feeding (705) the correspondences between the two consecutive frames into an RS- aware differential homography estimation component to filter out outlier correspondences ; sending (707) inlier correspondences to an RS-aware spatially varying differential homography field estimation component to compute an RS-aware spatially varying differential homography field; and using (709) the RS-aware spatially varying differential homography field in an RS stitching and correction component to produce stitched images with removal of the RS distortions.

16. The non- transitory computer-readable storage medium of claim 15, wherein the outlier correspondences are filtered out by employing robust estimation with the RS-aware differential homography estimation component and remaining inlier correspondences are sent to the RS-aware spatially varying differential homography estimation component.

17. The non-transitory computer-readable storage medium of claim 15, wherein the RS-aware spatially varying differential homography field is derived under a constant acceleration motion assumption regarding an RS camera capturing the video stream.

18. The non-transitory computer-readable storage medium of claim 15, wherein a minimal solver is applied to account for scanline varying camera poses of an RS camera capturing the video stream.

19. The non-transitory computer-readable storage medium of claim 15, wherein a relative motion between two first scanlines of the two consecutive frames are parameterized.

20. The non-transitory computer-readable storage medium of claim 19, wherein poses corresponding to all other scanlines are obtained by interpolation.

Description:
JOINT ROLLING SHUTTER IMAGE STITCHING AND RECTIFICATION

RELATED APPLICATION INFORMATION

[0001] This application claims priority to Provisional Application No. 62/984,896, filed on March 4, 2020, and U.S. Patent Application No. 17/182,836, filed on February 23, 2021, each incorporated herein by reference herein in their entirety.

BACKGROUND

Technical Field

[0002] The present invention relates to complementary metal oxide semiconductor (CMOS) imaging sensors and, more particularly, to joint rolling shutter image stitching and rectification related to CMOS imaging sensors.

Description of the Related Art

[0003] Many hand-held and wearable devices such as mobile phones, tablets, web cameras, drones, and smart glasses employ complementary metal oxide semiconductor (CMOS) imaging sensors due to their simple design and low-cost advantages. However, CMOS imaging sensors usually come with the drawback of capturing images under the Rolling Shutter (RS) mechanism. In contrast to Global Shutter (GS), which exposes all rows of the sensor array generally at the same time, RS exposes the sensor array on a row-by-row basis from top to bottom with a constant inter-row time delay. Therefore, if an RS camera is moving during image capturing, the produced RS images may include distortions such as skews and wobbles due to the delay between the exposure of the first row and last row. SUMMARY

[0004] A computer-implemented method executed by at least one processor for applying rolling shutter (RS)-aware spatially varying differential homography fields for simultaneous RS distortion removal and image stitching is presented. The method includes inputting two consecutive frames including RS distortions from a video stream, performing keypoint detection and matching to extract correspondences between the two consecutive frames, feeding the correspondences between the two consecutive frames into an RS-aware differential homography estimation component to filter out outlier correspondences, sending inlier correspondences to an RS-aware spatially varying differential homography field estimation component to compute an RS-aware spatially varying differential homography field, and using the RS-aware spatially varying differential homography field in an RS stitching and correction component to produce stitched images with removal of the RS distortions.

[0005] A system for applying rolling shutter (RS)-aware spatially varying differential homography fields for simultaneous RS distortion removal and image stitching is also presented. The system includes a memory and a processor in communication with the memory, wherein the processor is configured to input two consecutive frames including RS distortions from a video stream, perform keypoint detection and matching to extract correspondences between the two consecutive frames, feed the correspondences between the two consecutive frames into an RS-aware differential homography estimation component to filter out outlier correspondences, send inlier correspondences to an RS-aware spatially varying differential homography field estimation component to compute an RS-aware spatially varying differential homography field, and use the RS-aware spatially varying differential homography field in an RS stitching and correction component to produce stitched images with removal of the RS distortions.

[0006] A non-transitory computer-readable storage medium comprising a computer- readable program is presented for applying rolling shutter (RS)-aware spatially varying differential homography fields for simultaneous RS distortion removal and image stitching, wherein the computer-readable program when executed on a computer causes the computer to perform the steps of inputting two consecutive frames including RS distortions from a video stream, performing keypoint detection and matching to extract correspondences between the two consecutive frames, feeding the correspondences between the two consecutive frames into an RS- aware differential homography estimation component to filter out outlier correspondences, sending inlier correspondences to an RS-aware spatially varying differential homography field estimation component to compute an RS-aware spatially varying differential homography field, and using the RS-aware spatially varying differential homography field in an RS stitching and correction component to produce stitched images with removal of the RS distortions.

[0007] These and other features and advantages will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings.

BRIEF DESCRIPTION OF DRAWINGS

[0008] The disclosure will provide details in the following description of preferred embodiments with reference to the following figures wherein:

[0009] FIG. 1 is a block/flow diagram illustrating a rolling shutter (RS) correction and stitching framework, in accordance with embodiments of the present invention; [0010] FIG. 2 is an exemplary processing system for RS correction and stitching, in accordance with embodiments of the present invention;

[0011] FIG. 3 is a block/flow diagram of a method for RS correction and stitching, in accordance with embodiments of the present invention; and [0012] FIG. 4 is a block/flow diagram of practical applications for RS correction and stitching, in accordance with embodiments of the present invention.

DETAIFED DESCRIPTION OF PREFERRED EMBODIMENTS

[0013] Rolling Shutter (RS) cameras adopt complementary metal oxide semiconductor (CMOS) sensors due to their low cost and simplicity in manufacturing. This stands in contrast to Global Shutter (GS) charge-coupled device (CCD) cameras that require specialized and highly dedicated fabrication. Such discrepancy provides RS cameras with a great advantage for ubiquitous employment in consumer products, e.g., smartphone cameras or dashboard cameras. However, the expediency in fabrication also causes an issue in image capture. Instead of capturing different scanlines all at once as in GS cameras, RS cameras expose each scanline one by one sequentially from top to bottom. While static RS camera capturing a static scene is fine, the RS effect is unacceptable as soon as images are taken during motion, e.g., images could be distorted due to scanline-varying camera poses. [0014] RS distortion has thus been causing issues in various computer vision tasks.

There is constant pressure to either remove the RS distortion in the front-end image capture or design task-dependent RS -aware algorithms in the back end. While various algorithms have been developed for each of them in isolation, algorithms achieving both in a holistic way are few and far between. The exemplary embodiments of the present invention introduce differential homography and demonstrate its application to carry out RS image stitching and rectification at one stroke.

[0015] RS effects complicate the two- view geometry significantly compared to their GS counterparts, primarily because 12 additional unknown parameters are required to model the intra-frame velocity of the two cameras. Thus, despite the recent efforts in solving a generic RS homography for discrete motion, the complexity of RS geometry significantly increases the number of required correspondences (e.g., 36 points for full model and 13.5 points after a series of approximations). The exemplary embodiments focus on the special, yet common case, where the inputs are two consecutive frames from a video stream of an RS camera. In this case, the inter-frame motion is restricted from being arbitrarily large, allowing the exemplary methods to adopt the simpler differential homography model. Furthermore, the intra-frame motion could be directly parameterized by the inter-frame motion via interpolation, thereby reducing the total number of unknown parameters to solve.

[0016] In particular, the exemplary embodiments derive an RS-aware differential homography under constant acceleration motion assumption, together with a straightforward solver requiring only 5 pairs of correspondences and demonstrates its application to simultaneous RS image stitching and rectification. Since a single homography warping is only exact under pure rotational camera motion or for 3D planar scene, it often causes misalignment when such a condition is not strictly met in practice.

[0017] To address such model inadequacy, the exemplary embodiments extend the single RS homography model to a spatially varying RS homography field following the As-Projective-As-Possible (APAP) principle, thereby lending itself to handling complex scenes. Thus, multiple images are stitched and rectified by concatenating pairwise warping in accordance with the exemplary method.

[0018] Conventional techniques compute the rectification for each pixel separately via pixel- wise depth estimation from optical flow and camera pose. As such, potential errors in optical flow estimates could lead to severe artifacts in the texture-less or non overlapping regions. In contrast, the more parsimonious homography model offers a natural defense against wrong correspondences. Despite its lack of full 3D reconstruction, the exemplary embodiments observe good empirical performance in terms of visual appearance.

[0019] In summary, the exemplary embodiments derive a differential homography model together with a minimal solver to account for the scanline- varying camera poses of RS cameras. The exemplary embodiments introduce an RS -aware spatially varying homography field for improving RS image stitching. The proposed framework outperforms conventional methods both in RS image rectification and stitching.

[0020] Regarding GS discrete homography, it is assumed that two calibrated cameras are observing a 3D plane parameterized as ( n , d ), with n denoting the plane normal and d the camera-to-plane distance. Denoting the relative camera rotation and translation as R ∈ SO( 3) and t ∈ R 3 , a pair of 2D correspondences x 1 and x 2 (in normalized plane) can be related by where is defined as the discrete homography and x indicates equality up to a scale. Note that H in the above format subsumes the pure rotation-induced homography as a special case by letting Each pair of correspondence gives two constraints where is the vectorized form of H and the coefficients can be computed from . In a GS discrete 4-point solver, with a minimum of 4 points, h can be solved as follows:

[0021]

[0022] which has a closed-form solution by Singular Value Decomposition (SVD). A is obtained by stacking all a i .

[0023] Regarding the GS spatially varying discrete homography field, in an image stitching application, it is often safe to make a zero-parallax assumption as long as the (non-planar) scene is far enough. However, it is also not uncommon that such assumption is violated to the extent that warping with just one global homography causes unpleasant misalignments. To address this issue, APAP proposes to compute a spatially varying homography field for each pixel x :

[0024] where is a weight.

[0025] s and t are the pre-defined scale and regularization parameters, respectively. I indicates the inlier set returned from the GS discrete 4-point solver with RANSAC (Random Sample Consensus). The optimization has a closed-form solution by SVD. On the one hand, the above equation (spatially varying homography field for each pixel ) encourages the warping to be globally As-Projective-As-Possible (APAP) by making use of all the inlier correspondences, while, on the other hand, it allows local deformations guided by nearby correspondences to compensate for model deficiency. Such modification leads to considerable improvement in image stitching. [0026] Regarding GS differential homography, it is assumed that the camera is undergoing an instantaneous motion, including rotational and translational velocity (ω, v). Then the camera induces a motion flow in each image point x.

[0027] Denoting , the exemplary method obtains:

[0028]

[0029] where is defined as the differential homography. [0030] I represents an identity matrix and returns the corresponding skew- symmetric matrix from the vector. Each flow estimate gives two effective constraints out of the equations included in denoted as where can be computed from x i .

[0031] In the GS differential 4-point solver, with a minimal of 4 flow estimates, H can be computed by solving:

[0032]

[0033] which admits closed-form solution by pseudo inverse. B and U are obtained by stacking all b, and respectively. It is noted that only can be recovered with an unknown scale e because B has a one-dimensional null space. This can be seen by replacing with and observing that the right-hand side vanishes, regardless of the value of x. ε can be determined subsequently by utilizing the special structure of calibrated H. However, this is not relevant herein since the focus is on image stitching on general uncalibrated images.

[0034] Regarding RS motion parameterization, under the discrete motion model, in addition to the 6-Degree of Freedom (DoF) inter-frame relative motion ( R , t ), 12 additional unknown parameters (ω 1 , V 1 ) and (ω 2 , v 2 ) are needed to model the intra- frame camera velocity. This quickly increases the minimal number of points and the algorithm complexity to compute an RS-aware homography. Instead, the exemplary embodiments aim to solve it for the case of continuous motion, e.g., a relatively small motion between two consecutive frames. In this case, the exemplary methods only need to parameterize the relative motion (ω, v) between the two first scanlines (one can choose other reference scanlines without loss of generality) of the image pair, and the poses corresponding to all the other scanlines can be obtained by interpolation.

[0035] In particular, it is shown that a quadratic interpolation can be derived under constant acceleration motion. Formally, the absolute camera rotation and translation of scanline y 1 (resp. y 2 ) in frame 1 (resp. 2) can be written as:

[0036]

[0037]

[0038] where

[0039]

[0040]

[0041] Here, k is an extra unknown motion parameter describing the acceleration, which is assumed to be in the same direction as velocity y denotes the readout time ratio, e.g., the ratio between the time for scanline readout and the total time between two frames (including inter-frame delay) h denotes the total number of scanlines in an image. Note that the absolute poses and are all defined with respect to the first scanline of frame 1. It follows that the relative pose between scanlines y 1 and y 2 reads:

[0042] [0043] [0044] Regarding the RS-aware differential homography, first, it is straightforward to verify that also applies to uncalibrated cameras, under which case H , with u and x being raw measurements in pixels. K denotes the unknown camera intrinsic matrix.

[0045] Given a pair of correspondence by [u,x], the exemplary methods can plug into , thus yielding:

[0046] [0047] H RS can be defined as: as the RS-aware differential homography, which is now scanline dependent.

[0048] In addition to H, one more unknown parameter k needs to be solved. Below, the exemplary embodiments show that 5 pairs of correspondences are enough to solve for k and H, using the so-called hidden variable technique.

[0049] To get started, needs to be rewritten as:

[0050]

[0051] Next, u is moved to the left-hand side and the constraints from 5 points are stacked, thus leading to:

[0052] Ch = 0, where

[0053] It is now clear that, for h to have a solution, C must be rank-deficient. Further observing that is a square matrix, rank deficiency indicates vanishing determinate, e.g., det(C) = 0. [0054] This gives a univariable polynomial equation, whereby the exemplary methods can solve for k efficiently h can subsequently be extracted from the null space of C.

[0055] Regarding Degree of Freedom (DoF) analysis, only 4.5 points are required in the minimal case, since one extra unknown k is present while each point gives two constraints. Utilizing 5 points nevertheless leads to a straightforward solution as shown. Yet, does this lead to an over-constrained system? The answer is no because the exemplary methods can only recover up to an arbitrary ε. Here, due to the one extra constraint, a specific value is chosen for ε since the last element of h is set to 1. Note that a true ε, thus H, is not required in such context since it does not affect the warping. This is in contrast to uncalibrated Structure-from-Motion (SfM) where a projective reconstruction up to an arbitrary projective transformation is not inferior to the Euclidean reconstruction in terms of reprojection error.

[0056] Regarding plane parameters, the plane parameters slightly vary as well due to the intra-frame motion. This is however not explicitly modeled in due to two reasons. First, although the intra-frame motion is in a similar range as the inter-frame motion and hence has a large impact in terms of motion, it induces merely a small perturbation to the absolute value of the scene parameters, which can be safely ignored. Second, the exemplary methods would like to keep the solver as simple as possible to obtain acceptable empirical results.

[0057] Regarding motion infidelity versus shutter fidelity, it is noted that the differential motion model is always an approximation specially designed for small motion. This means that, unlike its discrete counterpart, its fidelity decreases with increasing motion. Yet, the exemplary methods are only interested in relatively large motion such that the RS distortion reaches the level of being visually unpleasant. Therefore, a natural question to ask is, whether the benefits from modeling RS distortion (Shutter Fidelity) are more than enough to compensate for the sacrifices due to the approximation in motion model (Motion Infidelity). It is observed that the differential RS model achieves overwhelming dominance in this competition.

[0058] Regarding degeneracy, are there different pairs of k and H that lead to the same flow field u? Although such degeneracy does not affect stitching, it does make a difference to rectification. It is noted that such cases are very rare. Firstly, note that although {u, x} is usually collected from optical flow prior to the advent of keypoint descriptors, the exemplary embodiments choose the latter for image stitching for higher efficiency. Secondly, if k = 0, e.g., constant velocity model, (ω, v) could be solved using a linear 4-point minimal solver similar to the GS case. However, it was determined to have inferior performance compared to the constant acceleration model in shaking cameras. Moreover, another question is whether GS APAP can handle RS distortion by itself.

[0059] As aforementioned, the adaptive weight in APAP is, e.g.,

[0060] Which permits local deformations to account for the local discrepancy from the global model. However, it can be argued that APAP alone is still not capable of handling RS distortion. The root cause lies in the GS homography being used, although the warping of pixels near correspondences are less affected, due to the anchor points role of correspondences, the warping of other pixels still relies on the transformation propagated from the correspondences, and, thus, the model being used does matter. [0061] Regarding RS-aware APAP, obtaining a set of inlier correspondences I from the RS differential 5-point solver with RANSAC, the exemplary methods formulate the spatially varying RS-aware homography field as:

[0062]

[0063] where is defined as · Since k is a pure motion parameter independent of the scene, it remains fixed in this stage for simplicity. A normalization strategy is applied to ( u , ) for numerical stability. The optimization has a simple closed- form solution, yet is geometrically meaningful in the sense that it minimizes the error between the estimated and the observed flow u. This stands in contrast with the discrete homography for which minimizing reprojection error requires nonlinear iterative optimization. In addition, it is also observed that higher stability from the differential model is achieved in cases of keypoints concentrating in a small region.

[0064] Regarding RS image stitching and rectification, once the homography H is had (either a global one or a spatially varying field) mapping from frame 1 to frame 2, the exemplary methods can warp between two images for stitching.

[0065] Referring to for each pixel in frame 1, its mapping is found in frame 2 by first solving for y 2 as:

[0066]

[0067] which admits a closed-form solution. indicates taking the y coordinate. X 2 can be then obtained easily with known y 2 . Similarly, x 1 could also be projected to the GS canvas defined by the pose corresponding to the first scanline of frame 1, yielding its rectified point x g 1. [0068] x g1 can be solved according to:

[0069]

[0070] where indicates taking x and y coordinate.

[0071] In summary, the exemplary embodiments derive a new differential homography that can account for the scanline-varying camera poses in RS cameras and illustrate that differential homography can be applied to carry out RS -aware image stitching and rectification at one stroke. Despite the high complexity of RS geometry, the exemplary methods focus on a special yet common input, that is, two consecutive frames from a video stream, wherein the inter-frame motion is restricted from being arbitrarily large. This permits the adoption of the simpler differential motion model, leading to straightforward minimal solvers under a mild motion assumption. Such simplicity also allows the exemplary methods to extend the single homography to a spatially varying homography field in the principle of as-projective-as- possible(APAP), which further improves the image stitching. The exemplary methods illustrate significantly superior performance over conventional methods in terms of both image stitching and rectification, especially for images captured by strongly shaking RS cameras.

[0072] The exemplary embodiments further develop a RS-aware differential homography with two frames as input. The exemplary embodiments focus on a special, yet practical case, where the input is two consecutive frames from a video stream. Under this case, the inter- frame motion is restricted from being arbitrarily large, allowing the exemplary methods to adopt a simpler differential homography model. Furthermore, the intra-frame motion can be directly interpolated from the inter-frame motion according to a mild motion assumption, thus immediately reducing unknown parameters. In particular, the exemplary methods derive an RS-aware differential homography under a constant acceleration motion assumption, together with a straightforward 5 -point solver, and demonstrate its application to simultaneous image stitching and rectification. Since a single homography warping is only exact under pure rotational camera motion or for a 3D planar scene, which is often not strictly met in practice and causes misalignment. In particular, the exemplary methods extend the single RS homography to a spatially varying RS homography field following the APAP principle, further improving stitching performance.

[0073] FIG. 1 is a block/flow diagram 100 illustrating a rolling shutter (RS) correction and stitching framework, in accordance with embodiments of the present invention.

[0074] Two RS images (denoted as f 1 and f 2 ) 110 are given as input. Keypoint detection and matching component 120 extracts correspondences between and f 2 , which are fed to the RS-aware differential homography estimation component 130 to filter out outlier correspondences. The inlier correspondences are then provided to the RS-aware spatially varying differential homography field estimation component 140. The RS-aware spatially varying differential homography field is then used for RS correction and stitching 150, producing stitched images 160 with distortion removed. [0075] Elements 110 pertain to the input RS images which include RS distortions. [0076] Given two RS images 110, denoted as f x and f 2 , from a consecutive video as input, the exemplary methods extract keypoints from both images and perform feature matching to find correspondences [x i , X i +U i ] is denoted with i = 1, 2 , ... , N as the set of correspondences extracted between the two images 110, where X i and X i +U i are respectively the i-th keypoint position on f 1 and its corresponding kepoing position on f 2 respectively, U i denotes the displacement vector, i.e. motion flow, between the two keypoints, and N is the number of correspondences. [0077] Component 120 is the keypoint detection and matching component that extracts keypoints and matches them across the input RS images 110 (e.g., any sparse/dense/hand-crafted/leamed keypoint detection and matching method).

[0078] Component 130 employs a robust estimation (e.g., RANSAC) with the proposed RS-aware differential homography model to filter out outlier correspondences .

[0079] The extracted correspondences are passed to the RS-aware differential homography solver 130 with RANSAC to select inlier correspondences. The exemplary methods denote the relative rotation and translation between the camera poses corresponding to the first scanline in f 1 and f 2 as ( ω , v ), ω ∈ so(3), t ∈ R 3 .

[0080] Component 140 is an RS-aware spatially varying differential homography field estimation component that computes the proposed RS-aware spatially varying differential homography field.

[0081] In an image stitching application, it is often safe to make a zero-parallax assumption as long as the (non-planar) scene is far enough. However, it is also not uncommon that such assumption is violated to the extent that warping with just one global homography causes unpleasant misalignments. To address this issue, the exemplary methods follow APAP to compute a spatially varying homography field for each pixel x:

[0082] where is a weight.

[0083] Component 150 is the RS correction and stitching component that takes the input RS images 110 ( f 1 and f 2 ) and the estimated RS-aware spatially varying differential homography field (e.g., it is assumed that it warps from f 1 and f 2 ) to perform RS correction and stitching.

[0084] Once the RS-aware homography mapping from frame 1 to frame 2 is obtained, the exemplary methods can warp between two images for stitching as well as removing the distortion. For each pixel x 1 = [x 1 ,y 1 ] T in frame 1, the exemplary methods find its mapping x 2 = [x 2 ,y 2 ] T in frame 2 by first solving for y 2 as noted above.

[0085] The output result is the stitched image 160 without RS distortion.

[0086] FIG. 2 is an exemplary processing system for RS correction and stitching, in accordance with embodiments of the present invention.

[0087] The processing system includes at least one processor (CPU) 604 operatively coupled to other components via a system bus 602. A GPU 605, a cache 606, a Read Only Memory (ROM) 608, a Random Access Memory (RAM) 610, an input/output (I/O) adapter 620, a network adapter 630, a user interface adapter 640, and a display adapter 650, are operatively coupled to the system bus 602. Additionally, differential homography model 670 can be employed for applying rolling shutter (RS)-aware spatially varying differential homography fields for simultaneous RS distortion removal and image stitching 672. The differential homography model 670 can employ an RS-aware spatially varying homography field to improve RS image stitching and correction.

[0088] A storage device 622 is operatively coupled to system bus 602 by the I/O adapter 620. The storage device 622 can be any of a disk storage device (e.g., a magnetic or optical disk storage device), a solid-state magnetic device, and so forth.

[0089] A transceiver 632 is operatively coupled to system bus 602 by network adapter 630. [0090] User input devices 642 are operatively coupled to system bus 602 by user interface adapter 640. The user input devices 642 can be any of a keyboard, a mouse, a keypad, an image capture device, a motion sensing device, a microphone, a device incorporating the functionality of at least two of the preceding devices, and so forth. Of course, other types of input devices can also be used, while maintaining the spirit of the present invention. The user input devices 642 can be the same type of user input device or different types of user input devices. The user input devices 642 are used to input and output information to and from the processing system.

[0091] A display device 652 is operatively coupled to system bus 602 by display adapter 650.

[0092] Of course, the processing system may also include other elements (not shown), as readily contemplated by one of skill in the art, as well as omit certain elements. For example, various other input devices and/or output devices can be included in the system, depending upon the particular implementation of the same, as readily understood by one of ordinary skill in the art. For example, various types of wireless and/or wired input and/or output devices can be used. Moreover, additional processors, controllers, memories, and so forth, in various configurations can also be utilized as readily appreciated by one of ordinary skill in the art. These and other variations of the processing system are readily contemplated by one of ordinary skill in the art given the teachings of the present invention provided herein.

[0093] FIG. 3 is a block/flow diagram of a method for RS correction and stitching, in accordance with embodiments of the present invention.

[0094] At block 701, input two consecutive frames including RS distortions from a video stream. [0095] At block 703, perform keypoint detection and matching to extract correspondences between the two consecutive frames.

[0096] At block 705, feed the correspondences between the two consecutive frames into an RS-aware differential homography estimation component to filter out outlier correspondences .

[0097] At block 707, send inlier correspondences to an RS-aware spatially varying differential homography field estimation component to compute an RS-aware spatially varying differential homography field.

[0098] At block 709, use the RS-aware spatially varying differential homography field in an RS stitching and correction component to produce stitched images with removal of the RS distortions.

[0099] FIG. 4 is a block/flow diagram 800 of practical applications for RS correction and stitching, in accordance with embodiments of the present invention.

[00100] Mobile phones 802, tablets 804, cameras 806, 808, drones 810, and smart glasses 812, no name a few electronic devices, employ CMOS imaging sensors 820, which capture images under the RS mechanism 825. The captured images 830 can include distortions. However, by applying the RS-aware spatially varying differential homography fields system 840 of the present invention, images 850 with no distortion can be obtained.

[00101] As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.

[00102] Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD- ROM), an optical data storage device, a magnetic data storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can include, or store a program for use by or in connection with an instruction execution system, apparatus, or device. [00103] A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. [00104] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[00105] Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object-oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).

[00106] Aspects of the present invention are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks or modules.

[00107] These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks or modules.

[00108] The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks or modules.

[00109] It is to be appreciated that the term “processor” as used herein is intended to include any processing device, such as, for example, one that includes a CPU (central processing unit) and/or other processing circuitry. It is also to be understood that the term “processor” may refer to more than one processing device and that various elements associated with a processing device may be shared by other processing devices.

[00110] The term “memory” as used herein is intended to include memory associated with a processor or CPU, such as, for example, RAM, ROM, a fixed memory device (e.g., hard drive), a removable memory device (e.g., diskette), flash memory, etc. Such memory may be considered a computer readable storage medium. [00111] In addition, the phrase “input/output devices” or “I/O devices” as used herein is intended to include, for example, one or more input devices (e.g., keyboard, mouse, scanner, etc.) for entering data to the processing unit, and/or one or more output devices (e.g., speaker, display, printer, etc.) for presenting results associated with the processing unit.

[00112] The foregoing is to be understood as being in every respect illustrative and exemplary, but not restrictive, and the scope of the invention disclosed herein is not to be determined from the Detailed Description, but rather from the claims as interpreted according to the full breadth permitted by the patent laws. It is to be understood that the embodiments shown and described herein are only illustrative of the principles of the present invention and that those skilled in the art may implement various modifications without departing from the scope and spirit of the invention. Those skilled in the art could implement various other feature combinations without departing from the scope and spirit of the invention. Having thus described aspects of the invention, with the details and particularity required by the patent laws, what is claimed and desired protected by Letters Patent is set forth in the appended claims.