The present invention relates generally to vision systems, and more particularly, to an infrared (IR) vision system and method for estimating camera motion and hence vehicle motion from an infra-red image sequence.
In recent years, there has been an increase in demand for using camera sensors in automotive applications. For example, cameras mounted in the rear view mirror of a vehicle are used to monitor a scene in the front of the vehicle to detect possible collisions with pedestrians or other vehicles. Night vision systems have also been introduced to enhance pedestrian safety in the presence of vehicluar traffic. One such system is a pedestrian detection system that uses a monocular infra-red camera.
In such applications, it is important to estimate the motions of the camera, which, since the camera is usually mounted rigidly to the vehicle, provides measurements of the motion of the vehicle itself. The types of vehicle motion, which can be expressed as rotation and translation, are related to the pose of the camera. Therefore, it is desirable to obtain the pose of a vehicle with respect to a ground plane, i.e., the road. The vehicle pose with respect to ground plane can be used to measure the distance to targets on the road when no alternative depth estimation method is available. For example, to identify threat situations in collision avoidance systems, it is desired to have an estimate of distance to targets in the path of a vehicle so that possible collisions can be identified and predicted. Secondly, egomotion of a vehicle can be used to directly estimate the ground plane from which a region of interest for further processing can be identified. In addition, vehicle motion information can be used to track targets (e.g., other vehicles and obstacles) robustly, especially at night.
One of the most commonly used approaches for camera pose estimation is to exploit correspondences between different views and compute a relative camera pose from matching features. The camera pose can be obtained by solving equations based on epipolar constraints. For example, in D. Nister, O. Naroditsky, and J. Bergen, “Visual Odometry,” Proc. IEEE Conf. on Comp. Vision and Patt. Recog., 01:652-659, 2004, Nister et. al. proposed a visual odometry that computes camera pose from Ransac based feature matching combined with a five-point algorithm for efficient pose computation. Optical-flow based methods have been proposed that computes pose by exploiting image flow on the ground or from image alignment. A direct method based approach has been adopted to avoid explicit calculation of optical-flow and feature matching. In J. G. Stein, O. Mano, and A. Shashua, “A robust method for computing vehicle ego-motion,” 2000 and J. G. Stein and A. Shashua, “Model-based brightness constraints: On direct estimation of structure and motion,” IEEE Trans. Pattern Anal. Machine Intell., 22(9):992-1015, 2000, Stein et. al. presented a system that computes egomotion of vehicle based on points on ground plane under a constrained camera motion assumption. In this method, a set of uniformly tessellated image patches from the ground plane is selected to probabilistically integrate to solve a motion equation based on planar motion constraint and brightness constancy.
All of the above mentioned approaches are based on either strong feature matching or require sufficient texture for image flow computations. However, these conditions cannot be met easily in the infra-red domain. This is because in infra-red images taken of road scenes, the thermal response of the scenes vary smoothly in a relatively low dynamic range, which results in smoothed, low resolution images compared with visual range image data. Thus, conventional approaches cannot be directly applicable to robust pose estimation.
There are other diffulties that are encountered with the use of correspondence-based pose estimation. First, there are few good features to track in an IR images of the road scenes. In general, features of the road structure such as lane markers are not available. Secondly, good features are typically found at the periphery of image and cannot be tracked robustly due to large image motions. That is, features tracked from nearby road structures are more distinctive to match than ones farther away and provide better resolution for numerically stable solutions. However, nearby road structures move faster in the image and quickly disappear before matching can be attained.
Accordingly, what would be desirable, but has not yet been provided, are an accurate method and resulting system for estimating camera motion and hence vehicle pose and motion from a camera mounted on a vehicle that uses infra-red images for night time applications.
The above-described problems are addressed and a technical solution achieved in the art by providing a method and resulting system for estimating egomotion of a camera mounted on a vehicle, comprising the steps of (a) receiving a pair of frames from a plurality of frames from the camera, the first frame being assigned to a previous frame and an anchor frame and the second frame being assigned to a current frame; (b) extracting features from the previous frame and the current frame; (c) finding correspondances between extracted features from the previous frame and the current frame; and (d) estimating the relative pose of the camera by minimizing reprojection errors from the correspondences to the anchor frame. The method can further comprise the steps of (e) assigning the current frame as the anchor frame when a predetermined amount of image motion between the current frame and the anchor frame is observed; (f) assigning the current frame to the previous frame and assigning a new frame from the plurality of frames to the current frame; and (g) repeating steps (b)-(f) until there are no more frames from the plurality of frames to process.
Step (c) can be based on an estimation of the focus of expansion between the previous frame and the current frame. Step (c) can further comprise the step of rectifying the previous frame and the current frame to remove rotational components by aligning the projection of optical centers (epipoles) of each of the previous frame and the current frame; creating at least one triangular region in the current frame that is placed along a radial line formed by at least one extracted feature and the initial focus of expansion; for each point in the anchor frame, searching for a candidate set of features in the interior of the at least one triangular region; and matching features using histogram of oriented gradient (HOG) and sum of squared difference (SSD) measures.
Features can be extracted from edge points in the previous frame and the current frame using an edge extraction method. Reprojection error can be measured in pixel distance between the reprojected 3D estimate using the current relative pose estimate and the position of extracted feature points of the current frame. Step (d) can further further comprise the step of incrementaly updating the relative pose estimate in a gradient descent manner.
The estimated relative pose can be further processed for displaying an artificial ground plane or horizon in front of the vehicle.
The present invention will be more readily understood from the detailed description of an exemplary embodiment presented below considered in conjunction with the attached drawings and in which like reference numerals refer to similar elements and in which:
It is to be understood that the attached drawings are for purposes of illustrating the concepts of the invention and may not be to scale.
The present invention describes an egomotion estimation system and method that can work robustly with infra-red image sequences. The method is based on aggregate feature matching that exploits “focus of expansion” constraints from instantaneous vehicle motions. Pose and structure are simultaneously estimated and propagated to obtain camera pose in consecutive frames where features do not register sufficient image motions between frames. The proposed method is designed to specifically handle the difficulties that arise from (1) fragility of feature matching under low-resolution infra-red imaging conditions, (2) noisy pose estimates due to small vehicle motion between image frames and (3) instability of pose estimation under dominant forward motions.
Referring now to
The vehicle pose with respect to ground plane can be used to measure and display the distance to targets on the ground when no alternative depth estimation method is available. For example, to identify threat situations in collision avoidance systems, it is desired to have an estimate of distance to targets in the path of vehicle so that possible collisions can be identified and predicted. The numerical pose data can be directly displayed or be further processed to display an artificial ground plane or horizon in front of the vehicle that changes in response to changes in camera pose data. In addition, vehicle motion information can be used in tracking targets robustly.
Referring now to
The present invention exploits the observation that under translational motion, matching points between two frames move in a radial pattern that centers on a point, i.e., the focus of expansion (FOE). To utilize the FOE, frames are first rectified to remove rotational components by aligning the projection of optical centers of each view (i.e., epipoles). Then, the search for correspondence is made along a radially expanding direction from an estimated FOE that is obtained during the rectification process.
Images can be rectified to obtain an FOE estimate without explicitly computing full rotational motion. Motion is typically dominated by either forward motions T(Tz,Tx,Ty) or combination of both rotation and translation. The instantaneous rotational motion in this case is usually indistinguishable from translational motion and thus can be reasonably approximated by it. The present invention assumes that under instantaneous vehicle motion, the roll component of the vehicle's rotational motion is typically bounded by a small δθ, so that images can be rectified by aligning images in x and y directions. Once rotational motion is removed, any remaining motion between images can be attributed to translational motion.
Under pure translational motion, correspondences between two frames form a radial pattern centering on a point, i.e., the FOE. In such circumstances, the FOE is a projection of translational direction on the current frame relative to the previous frame
where (ΔX;ΔY;ΔZ) is a translational motion and (fx,fy;cx,cy) are the focal length and the current frame center, which is is also coincident with the epipole of the current image.
More specifically, the translation between two frames is computed by aligning the epipoles of each image (frame). This is equivalent to correcting pitch and yaw components of rotation, and the remaining one degree of freedom from roll is taken into consideration later at the feature matching stage.
image displacement→epipole alignment→rectification
Accordingly, rectification can be approximated by aligning the epipoles of two input images, which in turn can be approximated by computing the image displacement between the two frames. The image offset (displacement) (δx,δy) between the two frames can be computed from overall motion in x and y directions independently. Specifically, motion in each direction is estimated by comparing cumulative pixel values from row and column histograms. For example, image offset in x direction can be computed by first summing gray values at feature points along a column and offset is measured from maximum correlation of the row and column histograms as follows:
The offset (δx,δy) is obtained from the maximum correlation between two histograms from each image along the x and y directions, respectively.
Then the initial FOE can then be expressed as xfoeo=(cx+δx,cy+δy). Note that the displacement vector (δx,δy) is essentially the motion of the epipole, i.e., the projection of optical centers of the two images.
Given two sets of features {xttc} and {xttn}, correspondences are found by utilizing the estimated initial FOE. Referring now to
The next step is to estimate the pose for the current frame. The pose of the current frame is computed with respect to the anchor frame where correspondences between two frames and 3D estimate of those points are available. In many circumstances, sufficient image motions are not available for resolving pose from correspondences in neighboring frames. For example, points around the center of an image register very small image motions while points at the periphery quickly disappear before matching. Instead of computing pose directly from correspondences, the present invention estimates pose from an updated structure of correspondences. The pose is estimated by minimizing reprojection error of 3D estimates of the correspondences onto the current frame where pose {Rest,Test} is updated incrementally in a gradient descent manner.
First, an initial estimate of pose between two frames is obtained by solving the 8-point algorithm as described in O. Faugeras, “Three-Dimensional Computer Vision: A Geometric Viewpoint,” THE MIT PRESS, pages 271-274, 1996. Because of noise in the matching process, such as from outliers and limited resolution from insufficient image motions, the initial estimate is expected to be noise. Given initial estimates of {R0,T0} the pose is updated iteratively by computing δR and δT as follows.
From αiK−1xin=RestXic+Test, direction and scale of δT can be computed by
δTest(j)=mineig(K−1xin×RestXic)
Test=Test+α(j)*δTest(j)
where α(j)=SrateSscaleSdir
and mineig( ) denotes minimum eigenvector of a 3×3 matrix, K−1,xinXic denotes the intrinsic camera matrix, 2d image point on the current frame, and a 3D estimate of the 2d image point in anchor frame, respectively.
The scalar variables Srate,Sscalor and Sdir
At each iteration, reprojection error is measured in pixel distance between the reprojected 3D estimate using the current pose estimate and the position of extracted feature points of the current frame. The estimated error is then used to control convergence speed and direction of δT in a gradient-descent manner. Typically, a maximum 10 of iterations are needed for convergence in computing pose between two frames.
When image motion (change in pose) between current frame and anchor frame exceeds a predetermined threshold, a 3D structure of correspondences (points), i.e., a 3D estimate of the matching points, is updated and the current frame is assigned as the anchor frame. The updated structure of correspondences can be used for minimizing reprojection errors in the motion estimation as shown in steps 32 and 34 of
|αiRcnK−1xc(i)+Tcn−βiK−1xn(i)|→min
where Xc(i)=αiK−1xc(i)
That is, the ambiguity of 3D estimates increases proportionally to the displacement from the FOE and inversely proportionally to depth. For example, it is assumed that the camera undergoes pure translation of (ΔX,ΔY,ΔZ)T. Note that general motion can be transformed to this case after rectification. Then displacement of correspondences in each axis can be expressed as
which is equivalent to
where
Note that in the lateral camera placement where ΔZ=0, the displacement δx in the above equation becomes
which corresponds to disparity and the amount of displacement is inversely proportional to depth only.
Absolute camera pose with respect to ground plane can also be estimated by combining egomotion and vanishing point (VP) estimates that is obtained from structures on the ground plane such as line markers. In this scheme, the goal is to compute vehicle (camera) pitch with respect to the ground plane for the purpose of estimating the distance to a target from image to ground mapping. A simple integration scheme is proposed that is based on a confidence measure of each estimate which reflects estimate error and ambiguity. Basically, two estimates of vanishing line (VL) are produced from each module that are combined with the confidence measure.
First, egomotion module produces an estimate of VLego VL by integrating instantaneous motions, which is then subtracted by camera offset θoffset(t). The VP estimation routine separately computes an estimate of VLvp(θvp). Both estimates are combined as follows.
VLvpopt=f(vpconf)VLvp+f(egoconf)VLego
It is to be understood that the exemplary embodiments are merely illustrative of the invention and that many variations of the above-described embodiments may be devised by one skilled in the art without departing from the scope of the invention. It is therefore intended that all such variations be included within the scope of the following claims and their equivalents.
This application claims the benefit of U.S. provisional patent application No. 61/028,861 filed Feb. 14, 2008, the disclosure of which is incorporated herein by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
7777816 | Chang et al. | Aug 2010 | B2 |
20020057241 | Oda et al. | May 2002 | A1 |
20030142752 | Demas et al. | Jul 2003 | A1 |
20050078081 | Oda et al. | Apr 2005 | A1 |
20060114359 | Chang et al. | Jun 2006 | A1 |
Number | Date | Country | |
---|---|---|---|
20090207257 A1 | Aug 2009 | US |
Number | Date | Country | |
---|---|---|---|
61028861 | Feb 2008 | US |