Apparatus for calculating optical flow and camera motion using correlation matching and system model in moving image
First Claim
1. An apparatus for calculating an optical flow and a camera motion of a camera using correlation matching and a system model in moving images, the apparatus comprising:
- feature point extracting means for extracting a feature point from each of a previous image and a current image in a sequence of input images;
optical flow calculating means for calculating an optical flow by determining a maximum edge connecting strength between the feature points extracted by the feature point extracting means;
first camera motion calculating means for calculating a camera motion using the optical flow calculated by the optical flow calculating means;
second camera motion calculating means for eliminating an incorrect optical flow from the optical flow calculated by the optical flow calculating means and calculating a second camera motion;
optical flow location estimating means for estimating a location of the optical flow by estimating a distance difference between an estimated feature point location and a current feature point location in the previous image according to the second camera motion calculated by the second camera motion calculating means; and
weighted value calculating means for calculating a plurality of weighted values according to the second camera motion calculated by the second camera motion calculating means and providing the weighted value to the optical flow calculating means, said weighted values changing according to zoom and optical axis rotation of said camera and including weighted values of correlation matching, location error matching and edge strength matching.
1 Assignment
0 Petitions
Accused Products
Abstract
An apparatus for calculating optical flow and camera motion using correlation matching and a system model in a moving image, in which the calculation of the optical flow is executed accurately in real time, even when an image rotation or zoom change has occurred. The apparatus comprises a feature point extracting section for extracting a feature point of a sequence of input images (previous image and current image); an optical flow calculating section for calculating an optical flow by use of the feature point extracted by the feature point extracting section; a first camera motion calculating section for calculating a camera motion by use of the optical flow calculated by the optical flow calculating section; a second camera motion calculating section for eliminating an incorrect optical flow from the optical flow calculated by the optical flow calculating section and again calculating camera motion; an optical flow location estimating section for estimating a location of the optical flow by estimating a distance difference between an estimated feature point location and a current feature point location in the previous image according to the camera motion calculated by the second camera motion calculating section; and a weighted value calculating section for calculating a weighted value according to the camera motion calculated by the second camera motion calculating section and providing the weighted value to the optical flow calculating section.
58 Citations
13 Claims
-
1. An apparatus for calculating an optical flow and a camera motion of a camera using correlation matching and a system model in moving images, the apparatus comprising:
-
feature point extracting means for extracting a feature point from each of a previous image and a current image in a sequence of input images;
optical flow calculating means for calculating an optical flow by determining a maximum edge connecting strength between the feature points extracted by the feature point extracting means;
first camera motion calculating means for calculating a camera motion using the optical flow calculated by the optical flow calculating means;
second camera motion calculating means for eliminating an incorrect optical flow from the optical flow calculated by the optical flow calculating means and calculating a second camera motion;
optical flow location estimating means for estimating a location of the optical flow by estimating a distance difference between an estimated feature point location and a current feature point location in the previous image according to the second camera motion calculated by the second camera motion calculating means; and
weighted value calculating means for calculating a plurality of weighted values according to the second camera motion calculated by the second camera motion calculating means and providing the weighted value to the optical flow calculating means, said weighted values changing according to zoom and optical axis rotation of said camera and including weighted values of correlation matching, location error matching and edge strength matching. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
a SUSAN edge driving portion for extracting an edge image from the sequence of the input images;
and a local max portion for selecting a largest value in a mask size region set in the edge image extracted by the SUSAN edge extracting portion to extract a certain number of feature points.
-
-
3. The apparatus for calculating the optical flow and camera motion as claimed in claim 2, wherein the feature points are extracted by the local max portion in accordance with:
-
wherein, I is a gray value, T is a threshold value for a difference between the gray values, and G is an edge strength difference between feature point locations of the previous and current images.
-
-
4. The apparatus for calculating the optical flow and camera motion as claimed in claim 1, wherein the optical flow calculating means comprises:
-
a combining section for calculating the connecting strength of an edge using the distance difference between the current feature point location and the estimated feature point location in the previous image provided from the optical flow location estimating means, the weighted values of the correlation, location incorrectness, and edge strength matching provided from the weighted value calculating means, and the edge strength difference between the feature points of the previous and current images provided from the feature point extracting means; and
a feature point extracting section for extracting the feature points of the largest connecting strength by use of the connecting strength value provided from the combining section and providing the extracted feature points to the first and second camera motion calculating means.
-
-
5. The apparatus for calculating the optical flow and camera motion as claimed in claim 4, wherein the edge connecting strength E is calculated by the combining section in accordance with:
-
6. The apparatus for calculating the optical flow and camera motion as claimed in claim 1, wherein the first camera motion calculating means comprises:
-
a pseudo inverse matrix calculating section for calculating a constant of a camera projection formula by use of the optical flow provided from the optical flow calculating means; and
a camera motion calculating section for dividing the camera motion by use of the constant of the camera projection formula provided from the pseudo inverse matrix calculating section, and providing the resultant to the second camera motion calculating means.
-
-
7. The apparatus for calculating the optical flow and camera motion as claimed in claim 1, wherein the second camera motion calculating means comprises:
-
an optical flow direction and magnitude calculating section for calculating a direction and magnitude of the optical flow by use of a value of the camera motion calculated by the first camera motion calculating means;
an incorrect optical flow eliminating section for eliminating an incorrect optical flow from the optical flow provided by the optical flow calculating means depending upon the direction and magnitude of the optical flow calculated by the optical flow direction and magnitude calculating section; and
a camera motion calculating section for calculating the camera motion by use of the optical flow which is not eliminated by the incorrect optical flow eliminating section, and providing the camera motion to the weighted value calculating means and the optical flow location estimating means, respectively.
-
-
8. The apparatus for calculating the optical flow and camera motion as claimed in claim 7, wherein the direction and magnitude of the optical flow are calculated by the optical flow direction and magnitude calculating section in accordance with:
-
wherein, Δ
t is a sampling time, Tx, Ty and Tz are x, y and z-axis translation of the camera, respectively, and Ω
z is z-axis rotation of the camera, xt, and yt are locations in the current frame image, and xAve and yAve are standard locations.
-
-
9. The apparatus for calculating the optical flow and camera motion as claimed in claim 8, wherein if a direction θ
- of a standard optical flow and a distance Δ
between xAve and yAve are outside a predetermined range, the incorrect optical flow eliminating section determines the calculated optical flow as a mismatched optical flow to eliminate the incorrect optical flow.
- of a standard optical flow and a distance Δ
-
10. The apparatus for calculating the optical flow and camera motion as claimed in claim 1, wherein the optical flow location estimating means estimates the camera motion, depending upon the optical flow from which the incorrect optical flow is eliminated, and the camera motion provided from the second camera motion calculating means, in accordance with:
-
wherein, {circumflex over (T)}x,t+1, {circumflex over (T)}y,t+1, {circumflex over (T)}x,t+1, {circumflex over (Ω
)}x,t+1 are camera motion estimated.
-
-
11. The apparatus for calculating the optical flow and camera motion as claimed in claim 1, wherein the weighted value calculating means comprises:
-
a correlation matching weighted value calculating section for calculating the correlation matching weighted value by use of the camera motion in which the incorrect optical flow has been eliminated by the second camera motion calculating means; and
a weighted value normalized calculating section for executing smoothing of a predetermined location estimated constant weighted value, an edge strength constant weighted value, and the calculated correlation matching weighted value, and providing each of the smoothed values to the optical flow calculating means.
-
-
12. The apparatus for calculating the optical flow and camera motion as claimed in claim 11, wherein the correlation matching weighted value is calculated by the correlation matching weighted value calculating section in accordance with:
-
13. The apparatus for calculating the optical flow and camera motion as claimed in claim 11, wherein the smoothing of the predetermined location estimated constant weighted value, the edge strength constant weighted value, and the calculated correlation matching weighted value are executed by the weighted value normalized calculating section in accordance with:
-
wherein, WCl,Init and WS,Init are the location estimated weighted value and the edge strength constant weighted value, respectively.
-
Specification