USPatent applicationPatented

Method and apparatus for stereo misalignment estimation using modified affine or perspective model

Granted 1 Jul 2014 · no office action yet

Life of the application

8 dated events
⤢ drag to zoom201020122014201620182020202220242026202820302032ProsecutionOwnershipTerm & fees
ProsecutionOwnershipTerm & feeshover for detail · click to open

Abstract

A method and apparatus for estimating stereo misalignment using modified affine or perspective model. The method includes dividing a left frame and a right frame into blocks, comparing horizontal and vertical boundary signals in the left frame and the right frame, estimating the horizontal and the vertical motion vector for each block in a reference frame, selecting a reliable motion vectors from a set of motion vectors, dividing the selected block into smaller features, feeding the data to an affine or a perspective transformation model to solve for the model parameters, running the model parameters through a temporal filter, portioning the estimated misalignment parameters between the left frame and right frame, and modifying the left frame and the right frame to save some boundary space.

Description

6 parts
›CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims benefit of U.S. provisional patent application Ser. No. 61/414,957, filed Nov. 18, 2010, which is herein incorporated by reference.

›BACKGROUND OF THE INVENTION

1. Field of the Invention

Embodiments of the present invention generally relate to a method and apparatus for stereo misalignment estimation, and more specifically, for stereo misalignment estimation using modified affine or perspective model.

2. Description of the Related Art

Cameras in a stereo system are usually slightly misaligned due to manufacturing imperfection, environmental factors, and the like. Currently, solutions use hardware to resolve such misalignment. However, hardware calibration is expensive and usually unavailable.

Therefore, there is a need for a method and/or apparatus for improving the camera systems to estimate stereo misalignment.

›SUMMARY OF THE INVENTION

Embodiments of the present invention relate to a method and apparatus for estimating stereo misalignment using modified affine or perspective model. The method includes dividing a left frame and a right frame into blocks, comparing horizontal and vertical boundary signals in the left frame and the right frame, estimating the horizontal and the vertical motion vector for each block in a reference frame, selecting a reliable motion vectors from a set of motion vectors, dividing the selected block into smaller features, feeding the data to an affine or perspective transformation model to solve for the model parameters, running the model parameters through a temporal filter, portioning the estimated misalignment parameters between the left frame and right frame, and modifying the left frame and the right frame to save some boundary space.

›BRIEF DESCRIPTION OF THE DRAWINGS

So that the manner in which the above recited features of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of this invention and are therefore not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments.

FIG. 1 is an embodiment of a flow diagram for a method for estimating stereo misalignment using modified affine or perspective model;

FIG. 2 is an embodiment of a flow diagram for a method for performing affine or perspective model fitting;

FIG. 3 is an embodiment of a temporal filter;

FIG. 4 is an embodiment of a Stereo Misalignment Correction Algorithm initialization stage; and

FIG. 5 is an embodiment of a Stereo Misalignment Correction Algorithm normal mode for updating the output.

›DETAILED DESCRIPTION · 1 of 2

FIG. 1 is an embodiment of a flow diagram for a method for estimating stereo misalignment using a modified affine or perspective model. FIG. 1 , the method divides a left frame and a right frame into blocks. Then, the method compares horizontal and vertical boundary signals in the left frame and the right frame and estimates the horizontal and the vertical motion vector for each block in a reference frame. As shown in FIG. 1 , the method selects a reliable motion vectors from a set of motion vectors, divides the selected block into smaller features, and feeds the data to an affine or perspective transformation model to solve for the model parameters. Finally, the method runs the model parameters through a temporal filter, portions the estimated misalignment parameters between the left frame and right frame, and modifies the left frame and the right frame to save some boundary space. In one embodiment, the method does not perform hardware calibration; rather, charts are utilized to perform software calibration. Thus, no special charts are needed to calibrate a frame.

The motion between the left and right frames produced by the stereo camera setup is estimated. The estimated motion vectors are used to model the relationship between the left and right frames in terms of vertical translation, rotation, and scaling in the case of affine transformation and in terms of two additional parameters in the case of perspective transformation.

The left and right frames are divided into several blocks. For each block, horizontal and vertical boundary signals are calculated. A horizontal boundary signal is a row vector that consists of the sum of pixel columns in the block. Similarly, a vertical boundary signal is a column vector for which each element is the sum of all pixels in its row. In one embodiment, one dimensional horizontal and vertical motion estimation are carried out by comparing these horizontal and vertical boundary signals in left and right frames. As a result, a horizontal and a vertical motion vector are estimated for each block in the reference frame.

Next, the reliable motion vectors are selected from the available motion vectors. In one embodiment, only the vertical motion components are considered. When the absolute value is equal to the maximum search range, the motion vector is determined to be unreliable and, thus, its block is eliminated. If there are more than a predetermined number of blocks left after this check, the motion vectors may optionally be sorted and the minimum and maximum ones may be eliminated.

Selected block is then divided into smaller blocks or features. In one embodiment, to minimize the computational complexity, a subset of the features is used to refine the initial motion vector estimates. The features are selected based on a combination of several criteria, such as, the contrast with their surroundings and their distance to the center of the frame. For the selected features, two dimensional block based motion estimation are carried out on a small range to increase the accuracy of the initial motion vectors. The computational complexity is decreased by employing a two stage hierarchical motion estimation scheme.

After completing this step, several features with their corresponding motion vectors and coordinates in the reference frame remain. Such data is fed to an affine or a perspective transformation model to solve for the model parameters. The classic affine transformation model is given as follows:

[ x ′ y ′ ] = [ 1 + c - s s 1 + c ] ⁡ [ x y ] + [ d x d y ] ,

where d x is the horizontal translation parameter, d y is the vertical translation parameter, is the rotation parameter, and c is the scaling parameter. However, in such embodiments, the horizontal disparity that is present between left and right frames is not taken into account. Disparity is a function of depth and accurate depth estimation can be costly.

Using homogenous coordinates, a perspective transformation can be written as follows:

[ X Y Z ] = [ 1 + c - s d x s 1 + c d y g h 1 ] ⁡ [ x y 1 ]

where g and h are the additional parameters that enable perspective warp. Cartesian coordinates can be calculated by x′=X/Z and y′=Y/Z.

FIG. 2 is an embodiment of a flow diagram for a method for performing affine or perspective model fitting. In FIG. 2 , the model fitting stage can be summarized. As shown in FIG. 2 , the model fitting stage starts by calculating the least-squares parameter estimates and evaluating the error. If the error is found to be below a threshold, the fitting ends. Otherwise, the worst feature is eliminated. After elimination, if there are enough features, the least-squares parameter estimates are calculated again; otherwise, the fitting ends. In some embodiment, the horizontal component is not taken into account. For affine transformation this leads to the following model with three parameters:

[ y ′ ] = [ s 1 + c ] ⁡ [ x y ] + [ d y ]

For perspective transformation, it leads to the following model with five parameters:

To avoid flicker artifacts in the output, in some embodiments, the parameters found for each frame directly may not be used. Instead, the parameters may be run through a temporal filter where E(n) is the parameter estimation from the n th frame, P(n) is set the of parameters used for correcting the n th frame, and P(0)=(0,0,0). Finally, the estimated misalignment parameters are portioned between the left and right frames and both are modified to save some boundary space. The temporal filter is described in FIG. 3 .

FIG. 3 is an embodiment of a temporal filter. When the fitting was successful and the frame is an initial frame, the current parameters are updated by averaging, P(n)=0.5*P(n−1)+0.5*E(n). However, when the fitting was successful and the estimated values are close to the current values, then the current parameters are updated by weighted averaging, P(n)=w*P(n−1)+(1−w)*E(n), where w is the weight. Otherwise, the parameters are not updated and P(n)=P(n−1).

In another embodiment, to improve the reliability of SMALC (Stereo Misalignment Correction Algorithm) output and avoid flicker artifacts, instead of using the instantaneous parameters estimated from each UR frame pairs, SMALC output is updated following a series of rules, as shown in the example in FIG. 4 . FIG. 4 is an embodiment of a Stereo Misalignment Correction Algorithm initialization stage (SMALC).

›DETAILED DESCRIPTION · 2 of 2

In FIG. 4 , SMALC output p_saved are initialized to zeros. At the initial call of the algorithm, the instantaneous SMALC parameters p_current is computed. However, the output p_saved may not be updated. For new frames, p_current is computed until all the SMALC parameters in p_current are valid. At such point, p_saved is directly updated to p_current, as well as the three history buffers, which record the last three valid SMALC instantaneous output, p_histoty 1 , p_history 2 , and p_history 3 . p_rollingAvg. These parameters are computed according to the following equation: p_rollingAvg(n)=(p_history 1 ( n )+p_history 1 ( n )+p_history 1 ( n ))/3, (Where, n is the temporal index of the frames), which is also updated to p_current.

At such point, SMALC may start operating in normal mode for updating final output p_saved. To check if p_current is valid, each SMALC estimates parameter is compared with a pre-determined threshold. For example, the valid rotation parameter may be less than ±1 degree and the valid scaling factor to be less than ±3%.

In the normal mode of updating, SMALC computes instantaneous output p_current for each frame. It updates the three history buffers with p_current if p_current is valid. After history buffer is updated, the algorithm checks if the SMALC parameters in the past three valid frames are consistent, by comparing the maximal difference among the three history buffers max{diff_ij} with a pre-determined threshold maxestdif. The difference between each two buffers diff_ij is computed by using the following equation: diff_ij(n)=sum (weight_k*abs(p_history_i(n,k)−p_history_j(n,k)).

In one embodiment, the weight for vertical misalignment is 1.0, for scaling factor is the horizontal resolution dividing by 2, and for rotation factor is the vertical resolution dividing by 2, and maxestdif is the horizontal resolution dividing by 50. If max{diff_ij} is less than maxestdif, the rolling average p_rollingAvg is updated according to the equation p_rollingAvg(n)=(p_history 1 ( n )+p_history 1 ( n )+p_history 1 ( n ))/3, and the final output p_saved is updated according to p_saved(n)=α*p_saved(n−1)+(1−α)*p_rollingAvg(n), where, n is temporal index of the frames, and α is updating speed. In one embodiment, α is 0.1, where a can be set to different values for slow updating mode and fast updating mode. The smaller α is, the faster the update speed. It should be noted that k indexes the k-th parameter in each instantaneous SMALC output, n indexes the temporal order of the frames, i,j index the three history buffers, and weight_k is the weight given to the difference between two frame output for the k-th parameter.

FIG. 5 is an embodiment of a Stereo Misalignment Correction Algorithm (SMALC) normal mode for updating the output. After initializing SMALC, SMALC runs in normal mode. In normal mode, SMALC current parameters are calculated using the left and right frames. When the current value is valid, the history parameters are updated with the new values. If the history values are updated, the rolling average value is calculated using the following equation:

p _rollingAvg( n )←( p _history1( n )+ p _history2( n )+ p _history3( n ))/3

and the SMALC output is updated to be used in the next frame using the following equation:

p _saved( n )=α* p _saved( n− 1)+(1−α)* p _rollingAvg( n ).

Such an embodiment uses a three parameter affine transformation model that generates vertical translation, rotation, and scaling parameters or a five parameter perspective model that generates two more parameters in addition to the three affine parameters. Since our model does not rely on the horizontal motion vectors, such a solution does not suffer from the uncertainty of the horizontal disparity present in most stereo image pair. Furthermore, since the initial motion estimation for each direction is carried out separately using boundary signals and since the hierarchical motion estimation is used to refine initial motion vectors, such a solution has low computational complexity.

While the foregoing is directed to embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.

Claims as granted

30 claims

Log in to read the claims of this application.

Log in to unlock

Classifications

8 codes
IPC · International Patent Classification
Section G — Physics
  • G06K9/32
  • G06K9/36
USPC · US Patent Classification
382/276382/287382/296382/295382/293382/294

Claim changes

Soon
Coming soonHow the claims changed between publication and grant

See which claims were amended, added or cancelled during examination, with every added and removed word marked.

AmendedAddedCancelledUnchanged

The published claims of this application are not paired with the granted ones in what we hold.

File wrapper

⤢ drag to zoomOct 2011Jan 2012Apr 2012Jul 2012Oct 2012Jan 2013Apr 2013Jul 2013Oct 2013Jan 2014Apr 2014Jul 2014USPTOApplicantNotice of allowance
USPTOApplicanthover for detail · click to open
Pendency
2.6 y
957 days filing → grant
Office actions
0
none on record
Examiner
Brian Le
art unit 2666 · TC 2600
Citations: 3 back · 0 forward

See the full prosecution history — every USPTO and applicant action on this file, in order.

Log in to unlock

Documents

Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.

Log in to unlock

Chain of title

⤢ drag to zoom20122014201620182020202220242026202820302032Owner 2
Titlehover for detail · click to open

See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.

Log in to unlock