Information
-
Patent Application
-
20040091047
-
Publication Number
20040091047
-
Date Filed
November 11, 200222 years ago
-
Date Published
May 13, 200420 years ago
-
Inventors
-
Original Assignees
-
CPC
-
US Classifications
-
International Classifications
Abstract
A method and apparatus for nonlinear multiple motion model and moving boundary extraction are disclosed. In one embodiment, an input image is received, the input image is partitioned into regions/blocks, and the new multiple motion model is applied to each region to extract the motions and associated moving boundaries.
Description
FIELD OF THE INVENTION
[0001] The present invention pertains to image processing. More particularly, the present invention relates to estimation of object motion in images.
BACKGROUND OF THE INVENTION
[0002] Standard motion modeling for video coding involves parametric models, applied to a fixed region (motion block), to estimate the motion. These approaches are limited in that the models cannot handle the existence of multiple (different) motions within the motion block. This presents a problem.
[0003] A basic problem in motion estimation is the ability of the model to handle multiple motion and moving object boundaries. Standard motion models, such as the affine or perspective models, allow for smooth deformations of a region (i.e., the motion block) to capture a coherent motion (such as translation, zoom, rotation) for all the pixels in the motion block. The region or block over which the motion is estimated cannot be chosen to be to small; this is from (1) a coding point of view, since larger regions mean smaller motion overhead, and (2) from an estimation point of view, larger region allows for better estimation of motion parameters.
[0004] A key problem that arises, from the standard limitation of common motion models, is the occurrence of multiple motions within the motion block. A moving object boundary within a motion region is indication of two possibly very different motions (motion of the object and motion of say the background). Also, a moving object boundary implies that some pixels will be occluded (hidden) with respect to the past or future motion estimation. This occlusion effect can bias the motion estimate, lead to higher prediction error, and make it difficult to accurately extract the object boundary.
[0005] Approaches in motion segmentation often rely on optical flow estimates or parametric (i.e., affine) motion models; these will have the usual problems near object boundaries and occlusion effects. Some degree of smoothness in the segmentation field, and hence in object boundaries, can be achieved with a prior probability term in MAP/Bayesian methods. This is more of a constraint on the connectivity of the segmentation field, without any explicit coupled model to account for object boundary and motion fields. A curvature evolution model may be used to capture the boundary of a moving object. However, this approach does not involve motion estimations/field, and relies on a temporal difference operator in the model for the evolution of the object boundary.
[0006] In another approach, the context of a level set approach, implicitly models the contour of the object boundary and multiple affine motion fields, however, motion estimation is with respect to only one reference frame, i.e., motion of frame n is determined from n−1. As discussed above, this has problems. Some pixels close to the object boundary may be occluded; this will in turn bias the estimation of the boundary, since the motion field is not reliable near the boundary due to occlusion.
[0007] Thus, there are problems with the common motion models.
BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The present invention is illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements and in which:
[0009]
FIG. 1 illustrates a network environment in which techniques of the present invention may be used;
[0010]
FIG. 2 is a block diagram of a computer system in which embodiments of the present invention may be implemented;
[0011]
FIG. 3 illustrates one embodiment of the invention in flow chart form;
[0012]
FIG. 4 illustrates in flow chart form one embodiment of video coding;
[0013]
FIG. 5 illustrates one embodiment of motion segmentation into 2 regions;
[0014]
FIG. 6 illustrates the behavior of one embodiment of a function that controls the time reference assignment of pixels;
[0015]
FIG. 7, FIG. 8, and FIG. 9 are examples illustrating how embodiments of the invention motion model, applied to a local block region, achieve separation into past and future motion references, and hence the extraction of the moving boundary is captured;
[0016]
FIG. 10 is an example illustrating how an embodiment of the invention motion model estimated the location of a moving boundary;
[0017]
FIG. 11 is an example illustrating the comparison between a standard motion model and an embodiment of the invention motion model;
[0018]
FIG. 12 is an example illustrating 3 motions, their movement, and lowest predicted error reference frames; and
[0019]
FIG. 13 illustrates the behavior of one embodiment of an interface function which controls the time reference assignment for 3 motions.
DETAILED DESCRIPTION
[0020] A method and apparatus for nonlinear multiple motion model and moving boundary extraction are described.
[0021] The present invention involves a new motion model for estimation of object motion in video images. In one embodiment of the invention, a new motion model that involves nonlinear coupling between space and time variables is used, a type of region competition to separate multiple motions, and boundary modeling to extract an estimate of the moving object boundary. The model is compact and can be used in motion segmentation and/or video coding applications.
[0022] In another embodiment of the present invention, an extension of motion modeling has been used to account for the problems discussed in the background section. The basic features of this model are the following:
[0023] 1) a time variable is introduced to allow for combined motion estimation with respect to the past and future frame;
[0024] 2) multiple motions (2 motions or more) are allowed to coexist;
[0025] 3) object boundary extraction (curvature of boundary incorporated), is determined from a type of region competition for boundary selection; and
[0026] 4) a nonlinear function is used to control/refine the estimate of the object boundary.
[0027] The present invention is capable of handling multiple motions (two or more). However, to not unnecessarily obscure the present invention, the discussion will initially discuss two motions, with an extension to more than two motions described later in the specification.
[0028] One skilled in the art will appreciate that the use of the time variable allows the introduction of two motions and yet avoids occlusion effects. If some pixels close to a moving object boundary are, for example, hidden in the previous frame, then the motion region (to which these pixels belong) will tend to reference its motion with respect to the future (and vice-versa) to reduce prediction error. This is, in a sense, a type of “region competition”, where the object boundary is obtained as the 2 motion regions compete to reduce their prediction error by selecting either past or future as their reference frame for motion estimation. Therefore, the moving object boundary in our model is determined implicitly from this type of region competition. This is in contrast to models that explicitly introduce a contour model (i.e., active contour models); these methods can have significant problems with discretization of the contour and control of the length/curvature as the contour evolves.
[0029] In one embodiment of the invention, the motion model is applied locally to a region/block in an image, and it may be viewed as part of a refinement stage to motion estimation or motion segmentation. That is, if after one pass of a motion estimation/segmentation algorithm of an image (say initially using a standard affine motion model) the prediction error in some region is above some quality threshold, then an embodiment of the present invention motion model may be applied to those regions. FIG. 3 illustrates the process in flow chart form 300.
[0030] At 302 the prediction error from a standard motion model for a region is received. At 304 a determination is made as to whether the prediction error (received from 302) is greater than a first preset threshold. If the prediction error (from 302) is not greater than the first threshold then other 306 processing may be done. If the prediction error is greater than the first threshold then at 308 is captured 2 or more motions and the associated boundary for extraction for the region. Next, at 310 a check is made to determine if the prediction error (from 308) is greater than a second preset threshold. If the prediction error (from 308) is not greater than the second threshold then other 306 processing may be done. If the prediction error is greater than the second threshold then at 312 is captured more complex motions and the associated boundary for extraction for the region. In dashed block 314 is where some of the techniques of the invention are performed.
[0031] In another embodiment of the invention, an extension in the motion model may be used for true non-rigid deformation of object boundary. For example, box 312 in FIG. 3 may also refer to a more complex model to handle true non-rigid deformation. An extension such as a boundary-to-boundary matching can be used and incorporated in the structure illustrated in FIG. 3.
[0032] For a video coding application, simple segmentation (for low overhead) of a motion block/region to capture multiple motions (to reduce prediction error) may be achieved with quadtree segmentation of blocks, where large prediction error blocks are partitioned in sub-blocks for improved motion estimation. Similarly, blocks with large prediction errors may be quadtree segmented with a straight line model of the boundary/partition. In one embodiment of the invention, the approach is more aligned with the motion segmentation problem itself, which involves the ability to obtain good estimates of the location and local shape of the moving object boundaries.
[0033]
FIG. 4 illustrates in flow chart form 400 one embodiment of video coding. Here the motion model is used to estimate motion and remove temporal redundancy, resulting in a small motion residual to code. Discussed later are additional embodiments of the invention and how the motion model may be used efficiently and effectively for coding.
[0034] In FIG. 4, at 402 the input images are received. At 404 motion estimation is performed on a given frame and occlusion regions and moving boundaries, using the multiple motion and boundary extraction invention, are identified. At 406 the remaining motion residual is coded.
[0035] In an embodiment of the invention, the time variable is used for representation of 2 motions. In the motion model, simultaneous estimation with respect to past and future is used (i.e., 2 reference frames are used), so that pixels close to the boundary that are occluded in, say the past frame, will choose estimation from the future frame (where they are not occluded), and vice-versa. It is this duality of occlusion that is exploited in the model.
[0036] In an embodiment of the invention, a nonlinear aspect is used on the time variable (and hence boundary model) to control and refine the estimation of the boundary interface.
[0037] In an embodiment of the invention, the extended motion model may be used locally, and as part of a successive iterative approach, as illustrated in FIG. 3. Regions that are deemed poor (because of high prediction error), say in a first pass of a segmentation process, may be re-estimated with the extended motion model to capture multiple motions and the moving boundaries.
[0038] As mentioned above, the boundary is defined implicitly through the time variable in the motion model, whose functional form allows for the motion domains to be defined by regions of smooth compact support.
[0039] A Standard Model Review
[0040] In order for the reader to more quickly and fully understand embodiments of the present invention, a review of a standard motion model is presented. A standard motion model often used in motion estimation is the affine model, which takes the following form:
x
1
=v
x
(x,y)=ax+by+c
y
1
=v
y
(x,y)=dx+ey+f
[0041] where (x1,y1) is the pixel location on the reference frame (i.e., previous frame). If (a=e,d=−b) then only translation, zoom, and rotation motion are allowed; these are the dominant modes in most cases. Nonlinear perspective models is an extension of the affine model to 8 parameters to handle projection into the image plane. The motion models are applied over some region (motion block), and estimation of the parameters can involve linear least squared projections, direct minimization of prediction error, multi-resolution minimization of prediction error, etc.
[0042] Motion Model
[0043] Embodiments of the invention include a model to account for multiple motions and estimation of moving object boundaries. Past and future motion estimation is used. This involves the use of the time variable t1 (t1=−1 for motion estimation based on past frame, and t1=0 for motion estimation based on future frame). The model for 2 motions (more general case discussed later) takes the following form:
t
1
=F
(s)
s=B
(x,y)
x
1
=v
1
x
(x,y)+(v2x(x,y))(t1+1)
y
1
=v
1
y
(x,y)+(v2y(x,y))(t1+1) (1)
[0044] where B(x,y) contains information on the boundary/interface model, and {right arrow over (v)}i=(vix,viy) are the motion model vector maps for the i=1,2 motions.
[0045] For one realization of the model, we consider the model (i.e., smooth function of pixel coordinates)
s=B
(x,y)=gx+hy+αx2+βy2+i
[0046] where {g,h,α,β,i} are parameters to the model boundary curve.
[0047] We also take the standard affine motion models for {right arrow over (v)}i, so the equation above becomes:
t
1
=F
(s)
s=gx+hy+αx
2
+βy
2
+i
x
1
=ax+by+c
+(a1x+b1y+c1)(t1+1)
y
1
=dx+ey+f
+(d1x+e1y+f1)(t1+1)
[0048] where {a,b,c,d,e,f,a′,b′,c′,d′,e′,f′} are parameters of the affine motion models.
[0049] The description of the model is as follows:
[0050] First, consider the last two equations above. These model the two motions, one is a 6 parameter affine motion, the other is another 6 parameter affine motion.
[0051] For pixels with t′=−1, the motion vector is given by:
vx=x′−x=(a−1)x+by+c;
v
y
=y′−y=dx
+(e−1)y+f
[0052] For pixels with t′=0, the motion vector is given by:
v
x
=(a+a1−1)x+(b+b1)y+c+c1
v
y
=(d+d1)x+(e+e1−1)y+f+f1
[0053] The coupling to the time variable allows for the presence of 2 different motions in this embodiment (i.e., with different translation, rotation, and zooming). The partition of the motion region into 2 motions is defined according to whether the region uses a past or a future frame for motion estimation. This is shown in FIG. 5.
[0054] In FIG. 5 motion segmentation into 2 regions is obtained by the region's frame reference for motion estimation. The object moving with velocity Vo is the foreground object in this example. The model is determined by minimizing the prediction error (for both past and future reference frames). The lowest prediction error should result in the bottom partition (510), which avoids any occlusion effect, and hence has the best potential for locating the true moving boundary. 502 is the previous frame, 504 the current frame, and 506 is the future or next frame. 508 is one possible partition of the current frame into two motions. 510 is another partition of the current frame into two motions and is the lower prediction error case when compared with the 508 partition.
[0055] The time variable in Equation (1) is a smooth function of the pixel locations, and varies from −1 to 0. Operationally, a given pixel location in the motion block on the current frame defines the time variable t1. This time variable is then used in the last 2 equations to determine the motion vectors. The prediction is then formed by referencing the motion vector to a pixel location that lives on a frame at time t1; if t1=0 a future frame is used in prediction, if t1=−1 a past frame is used. For t1∈(−1,0), a linear combination of past and future frames are used.
[0056] The time variable controls the motion of the object boundary. The boundary is defined to be where s=−0.5, which in general is a curve described by a polynomial gx+hy+αx2+βy2+i=−0.5. The smoothness of the interface model allows each motion region to be defined by a smooth compact support. The nonlinear function F is chosen to be representative of the boundary, in the sense of saturating to 0 or −1 away from the interface, along with the condition t1=F(−0.5)=−0.5 defining the boundary. The nonlinear function
1
[0057] achieves this feature, where w controls the slope at the boundary. Reference is made to the parameter w as the “width” of the boundary or interface. Some plots of the function F for different boundary widths are shown in FIG. 6.
[0058] As shown in FIG. 6, is the behavior 600 of the function t1=F(s) used in one embodiment of the motion model. The function controls the assignment of pixels to past (t1=−1) or future (t1=0) reference frames for motion estimation, with the object boundary defined at s=−0.5. This function is characterized by a width parameter (w) and appropriately saturates at −1 and 0.
[0059] A key feature in the model is the “boundary width” (w) that controls the spread of the time variable from −1 (past frame) to 0 (future frame). Pixels near the boundary (defined by width w) are a type of mixture phase, i.e., linear combination of the 2 domains. That is, for a pixel within the boundary region, the prediction is:
I
pred
(x,y)=(1+t1)Ifuture(x1,y1)−t1Ipast(x1,y1)
[0060] and a Mixture State can be defined as:
[0061] Mixture states: weight (1+t1) for domain 1, and weight −t1 for domain 2. where t1∈(−1,0) (recall that time references the motion region/domain). In one embodiment of the invention, w itself may vary dynamically in the model. Then the system will naturally select the value w which would characterize the width/roughness of the boundary, and determine which pixels in the boundary layer are a mixture of the 2 domains.
[0062] Pure States:
[0063] In one embodiment of the invention to cleanly extract 2 (pure) domains with a fine boundary, w is fixed and small during the estimation step of the motion parameters. For example, the width parameter is fixed at w=⅓, and then re-estimation is performed using a successively finer interface width (as shown in FIG. 5). The nonlinear function F(s) in the model and the decrease of w is used to control and refine the estimate of the boundary. As the interface width decreases, pixels away from the boundary become “frozen” with regard to their reference frame. Only the pixels in the vicinity of the boundary (determined by s=−0.5) are allowed to have their time variable change (i.e., migrate to the other reference frame), and hence modify the boundary.
[0064] Estimation of Model Parameters:
[0065] In one embodiment of the invention, the estimation of the motion model parameters is obtained from minimization of the prediction error.
2
[0066] where (x1,y1,t1) are functions of the model parameters (see Equation (1)). Note that for each pixel, the prediction is a linear combination of past and future frames; simple bilinear temporal interpolation may be used. The estimation of the model parameters may be obtained from a steepest descent algorithm using multiple resolution layers (described below).
[0067] The detail procedure of the estimation algorithm for the motion model proceeds as follows. There are 3 sets of initial conditions that may be used below:
[0068] (1) Motion parameters initialized with respect to a previous frame
[0069] (2) Motion parameters initialized with respect to a future frame
[0070] (3) The average of the motion parameters from set (1) and (2)
[0071] For each set, the interface parameters, in one embodiment, are chosen to be
g=h=α=β=0;
i=−
0.075,−0.5,−0.25.
[0072] Thus a total of 9 initial conditions are used, although most often set 1 or 2 with i=−0.5 may be sufficient. The width parameter is kept fixed to w=⅓ for the sequence 1-7 below.
[0073] 1. Initialization of Parameters:
[0074] For {fraction (1/16)} size image (obtained from simple decimation of original image), block matching (BM) is performed on small blocks in the corresponding motion block. For initial condition set 1, BM is done with respect to the past; with respect to the future for set 2. The set of motion vectors is then mapped onto the model parameters using Least Squares (LS). This yields an initial set of parameters (a,b,c,d,e,f) for initial condition set 1 and 2; the parameters (a1,b1,c1,d1,e1,f1) are initialized to 0. For the third initial condition set, the average of the parameters from set 1 and 2 are used.
[0075] 2. Steepest descent is used on the {fraction (1/16)} size image to yield an estimate of the model parameters {right arrow over (V)}2 ({right arrow over (V)}2 denotes the component vector of all parameters in the model for layer 2 ({fraction (1/16)} size image)).
[0076] 3. Projection from {fraction (1/16)} to ¼ size image to initiate estimation on ¼ size image. This projection is determined so as to preserve the functional form of the model under spatial scaling. For projection of motion parameters from layer 2 to layer 1, we have:
[0077] Layer Projection:
a1=a2
b1=b2
c1=2c2
d1=d2
e1=e2
f1=2f2
g1=0.5 g2
h1=0.5 h2
i1=i2
α1=0.25 α2
β1=0.25 β2
[0078] 4. Use the projected estimate from upper layer as an initial condition for level 1. Repeat iteration/steepest descent for ¼ size image. This yields an estimate {right arrow over (V)}1.
[0079] 5. Projection of parameters for ¼ to original size image, as in 3.
[0080] 6. Repeat iteration/steepest descent estimation for full size image. Final solution is {right arrow over (V)}0.
[0081] 7. Repeat 1-6 for the set of initial conditions stated above.
[0082] 8. Select the estimate of parameters from the set of initial conditions with lowest prediction error. Re-estimate the motion parameters using the best {right arrow over (V)}0 as initial condition, but with a successively sharper width parameter w (¼, ⅛, {fraction (1/16)}). This leads to an improved estimate of the position and curvature of the moving object.
EXAMPLES
[0083] Some examples of the motion model are illustrated here. In the first set of examples, the motion model was applied to a region (80×80 block) which contains 2 motions. For the examples, the original image is shown on the left, and the right image shows the segmentation of a multiple motion region into 2 regions. The dark region references the past frame, and the white region references the future frame. Note that in each example the segmentation into past/future regions is consistent with the effect of occlusion being minimized, as discussed, and shown in FIG. 5.
[0084] Example 1 is shown in FIG. 7. The fan moves to the right. Curvature of the fan object is captured, and the motion model achieves separation into past and future motion references as discussed, and shown in FIG. 5. 702 is the original image, and 704 shows the segmentation of a multiple motion region into 2 regions. The dark region references the past frame, and the white region references the future frame.
[0085] Example 2 is shown in FIG. 8. Here, the man moves downwards. This is the same effect as in the previous example. 802 is the original image, and 804 shows the segmentation of a multiple motion region into 2 regions. The dark region references the past frame, and the white region references the future frame. The frame reference assignment is such that occlusion effect is minimized, as discussed in FIG. 5.
[0086] Example 3 is shown in FIG. 9. The girl in the foreground moves to the left. Because the girl moves to the left, the stationary region in front of her will prefer motion estimation with respect to the past where no occlusion occurs. 902 is the original image, 904 shows the segmentation of a multiple motion region into 2 regions. The dark region references the past frame, and the white region references the future frame.
[0087] For the above examples the prediction error data was calculated as the mean square error between the motion predicted region/block and the original block. The standard motion model refers to a single motion affine model, often used in motion estimation. The new motion model refers to an embodiment of the invention. As shown below, there is an improvement in prediction error using the new motion model.
1|
|
Standard motion modelNew motion model
|
|
Example 126.89.1
Example 222.08.6
Example 318.95.5
|
[0088] Motion Model Applied to Large Region
[0089] In the example below, a large region around the objects of interest was partitioned into 80×80 blocks. This region was obtained from a standard type of motion segmentation (affine motion model and k-means clustering), with poorly labeled blocks (blocks with high prediction error and/or high distortion classification) identifying the regions of moving objects. Next, an embodiment of the invention new motion model was applied to a set of 80×80 blocks covering a large region around the moving object of interest. Example 4 is shown in FIG. 10 where the thin black line 1002 is the estimation of location of the boundary using the new motion model.
[0090] In Example 4 as shown in FIG. 10, the girl walks to the right, the background “moves” to the left. The motion model is applied to a large region around the girl. The black lines around the girl (1002) is the extracted location of the moving object. The missing contour along her nose/face closely coincides with the boundary of one of the 80×80 blocks; thus most of the pixels in that block belong to one motion (face motion), and so the system selected one domain/state with no boundary.
[0091] Shown in FIG. 11 is a comparison between a segmentation using an affine motion model (standard motion model) 1104, and the improvement using the new model 1106 as disclosed in one embodiment of the invention. The small picture 1102 is the original image. The image 1104 is the segmentation map derived from a standard method using affine motion models. Different shades refer to different motion classes. The image 1106 is the new segmentation map obtained by re-estimating the motion with the new motion model. Image 1106 shows a better outline of the girl in the image, and a smoother segmentation field than does image 1104.
[0092] Video Coding
[0093] In another embodiment of the invention, video coding may make use of the new motion model. The model discussed above, by virtue of its ability to account for 2 motions, can be applied to a large region. In the examples discussed previously, 80×80 blocks were used. The new motion model may be viewed as “compactly” representing different motions and boundary information. For example, in one embodiment of the invention, the present model has 17 parameters, and if used in say 80×80 blocks (in a 704×484 image), is about 900 motion parameters; this includes all information necessary for a decoder to extract motion field and locations of some moving boundaries. Compare this to the approximately 2662 parameters needed for a very simple standard 16×16 Block Matching Algorithm (2 translation parameters, with no explicit moving boundary information).
[0094] Model for M Motions
[0095] As was mentioned previously, the discussion above primarily focused on 2 motions so as to not obscure embodiments of the invention. Other embodiments of the invention may account for an arbitrary number of motions (M) and may be applied to extend the examples and embodiments discussed above.
[0096] An extension of the 2 motion model to account for M motions with non-intersecting boundaries can be written in the form (this is an extension of Equation (1)):
3
[0097] where, as in Equation (1) above, we can use the model equations below as:
s
j
=B
j
(x,y)=gjx+hjy+αjx2+βjy2+ij,
[0098] and
{right arrow over (v)}
i
(x,y)=(aix+biy+ci,dix+eiy+fi)
[0099] In the above model, {right arrow over (x)} refers to a pixel position on the current frame (the one whose motion is being estimated), {right arrow over (x)}1 refers to a position on the reference frame, {tiref} are the M reference frames used for extraction of M motions. The motion vectors {{right arrow over (v)}i} are affine motion fields, t1 is the continuous time variable, and F({sj}, {wj}, {tiref}) is the nonlinear function (example for one interface is shown in FIG. 13), representing the boundaries. This function involves the interface equations {sj,j=1, . . . M−1} for M−1 boundaries, the M−1 width parameters {wj,j=1, . . . M−1}, and the reference times {tiref,i=1, . . . M} (center of each boundary; middle point of F, see FIG. 6 for the 2 motion case) for the M motions. The interface equations {sj} are polynomials that model the location and shape of the boundary. The normalization of the weight function,
4
[0100] is chosen to be 1 at i=1 (i.e., for t1ref=−1) to make correspondence with the case of 2 motions in Equation 1.
[0101] Case of 2 Motions
[0102] The model above reduces to the case realized earlier (see Equation (1)). The 2 reference frames are t1ref=−1 (past), and t2ref=0 (future). The factors in front of the affine motion vectors are:
5
[0103] There is only one boundary/interface variable s, and one width variable w. The nonlinear time equation becomes:
t
1
=F
({sj},{wj},{tiref})=F(s,w,t1ref,t2ref)
[0104] where, for example, the model used for 2 motions is:
6
[0105] 3 Motions
[0106] An example for 3 motions is shown in FIG. 12. Here, the three “motions” in the image region 1300 are the middle region, which is a stationary foreground, and the other 2 regions moving as indicated by the arrows. The 2 non-intersecting boundaries are shown as straight lines.
[0107] In order to minimize the occlusion/uncovered region effect, an optimal state (lower prediction error) will result in the region frame reference (Frame ref:) shown in FIG. 12. In this example, prediction relative to past (−1), future (0), and 2 frames deep in past (−2) was considered. An example of an interface function 1300 used in this example is shown in FIG. 13.
[0108] An example of an interface function for 3 motions (2 non-intersecting boundaries) is shown in FIG. 13. The function can be written as:
7
[0109] where t1ref=−1,t2ref=−2,t3ref=0, and w1,w2 are width parameters that characterize the smoothness/roughness of the boundaries (in the example above w1=0.25, w2=0.25). As discussed in the text for the 2 motion case, the width parameters {wj} may be fixed external parameters, however in general they may also be determined dynamically (which would allow the system to adjust or select the width/roughness of the boundary). As we discussed in Video Coding above, the invention may also be viewed as compactly representing multiple motions and boundary information. For an example of 3 motions, we would have about 30 parameters (6×3 for the 3 motions modeled by 6 parameter affine model, 5×2 for the 2 boundaries modeled by quadratic polynomial, and say 2 width parameters). However, since we can capture 3 motions, the block size could be increased to say 160×160 (instead of the 80×80 used in the 2 motion examples). This would still result in a coding gain compared to the conventional usage of 2 parameters for 16×16 blocks.
[0110] Thus what has been disclosed is a method and apparatus for nonlinear multiple motion model and moving boundary extraction.
[0111]
FIG. 1 illustrates a network environment 100 in which the techniques described may be applied. As shown, several computer systems in the form of S servers 104-1 through 104-S and C clients 108-1 through 108-C are connected to each other via a network 102, which may be, for example, a home based network. Note that alternatively the network 102 might be or include one or more of: the Internet, a Local Area Network (LAN), Wide Area Network (WAN), satellite link, fiber network, cable network, or a combination of these and/or others. The servers may represent, for example, disk storage systems alone or storage and computing resources. Likewise, the clients may have computing, storage, and viewing capabilities. The method and apparatus described herein may be applied to essentially any type of communicating means or device whether local or remote, such as a LAN, a WAN, a system bus, etc.
[0112]
FIG. 2 illustrates a computer system 200 in block diagram form, which may be representative of any of the clients and servers shown in FIG. 1, and which may be representative of an embodiment of the invention. The block diagram is a high level conceptual representation and may be implemented in a variety of ways and by various architectures. Bus system 202 interconnects a Central Processing Unit (CPU) 204, Read Only Memory (ROM) 206, Random Access Memory (RAM) 208, storage 210, display 220, audio, 222, keyboard 224, pointer 226, miscellaneous input/output (I/O) devices 228, and communications 230. The bus system 202 may be for example, one or more of such buses as a system bus, Peripheral Component Interconnect (PCI), Advanced Graphics Port (AGP), Small Computer System Interface (SCSI), Institute of Electrical and Electronics Engineers (IEEE) standard number 1394 (FireWire), Universal Serial Bus (USB), etc. The CPU 204 may be a single, multiple, or even a distributed computing resource. Storage 210, may be Compact Disc (CD), Digital Versatile Disk (DVD), hard disks (HD), optical disks, tape, flash, memory sticks, video recorders, etc. Display 220 might be, for example, a Cathode Ray Tube (CRT), Liquid Crystal Display (LCD), a projection system, Television (TV), etc. Note that depending upon the actual implementation of a computer system, the computer system may include some, all, more, or a rearrangement of components in the block diagram. For example, a thin client might consist of a wireless hand held device that lacks, for example, a traditional keyboard. Thus, many variations on the system of FIG. 2 are possible.
[0113] For purposes of discussing and understanding the invention, it is to be understood that various terms are used by those knowledgeable in the art to describe techniques and approaches. Furthermore, in the description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be evident, however, to one skilled in the art that the present invention may be practiced without these specific details. In some instances, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring the present invention. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention, and it is to be understood that other embodiments may be utilized and that logical, mechanical, electrical, and other changes may be made without departing from the scope of the present invention.
[0114] Some portions of the description may be presented in terms of algorithms and symbolic representations of operations on, for example, data bits within a computer memory. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is here, and generally, conceived to be a self-consistent sequence of acts leading to a desired result. The acts are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.
[0115] It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the discussion, it is appreciated that throughout the description, discussions utilizing terms such as “processing” or “computing” or “calculating” or “determining” or “displaying” or the like, can refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission, or display devices.
[0116] The present invention can be implemented by an apparatus for performing the operations herein. This apparatus may be specially constructed for the required purposes, or it may comprise a general-purpose computer, selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a computer readable storage medium, such as, but not limited to, any type of disk including floppy disks, hard disks, optical disks, compact disk-read only memories (CD-ROMs), and magnetic-optical disks, read-only memories (ROMs), random access memories (RAMs), electrically programmable read-only memories (EPROM)s, electrically erasable programmable read-only memories (EEPROMs), FLASH memories, magnetic or optical cards, etc., or any type of media suitable for storing electronic instructions either local to the computer or remote to the computer.
[0117] The algorithms and displays presented herein are not inherently related to any particular computer or other apparatus. Various general purpose systems may be used with programs in accordance with the teachings herein, or it may prove convenient to construct more specialized apparatus to perform the required method. For example, any of the methods according to the present invention can be implemented in hard-wired circuitry, by programming a general-purpose processor, or by any combination of hardware and software. One of skill in the art will immediately appreciate that the invention can be practiced with computer system configurations other than those described, including handheld devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, digital signal processing (DSP) devices, set top boxes, network PCs, minicomputers, mainframe computers, and the like. The invention can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network.
[0118] The methods of the invention may be implemented using computer software. If written in a programming language conforming to a recognized standard, sequences of instructions designed to implement the methods can be compiled for execution on a variety of hardware platforms and for interface to a variety of operating systems. In addition, the present invention is not described with reference to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the invention as described herein. Furthermore, it is common in the art to speak of software, in one form or another (e.g., program, procedure, application, driver, . . . ), as taking an action or causing a result. Such expressions are merely a shorthand way of saying that execution of the software by a computer causes the processor of the computer to perform an action or produce a result.
[0119] It is to be understood that various terms and techniques are used by those knowledgeable in the art to describe communications, protocols, applications, implementations, mechanisms, etc. One such technique is the description of an implementation of a technique in terms of an algorithm or mathematical expression. That is, while the technique may be, for example, implemented as executing code on a computer, the expression of that technique may be more aptly and succinctly conveyed and communicated as a formula, algorithm, or mathematical expression. Thus, one skilled in the art would recognize a block denoting A+B=C as an additive function whose implementation in hardware and/or software would take two inputs (A and B) and produce a summation output (C). Thus, the use of formula, algorithm, or mathematical expression as descriptions is to be understood as having a physical embodiment in at least hardware and/or software (such as a computer system in which the techniques of the present invention may be practiced as well as implemented as an embodiment).
[0120] A machine-readable medium is understood to include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer). For example, a machine-readable medium includes read only memory (ROM); random access memory (RAM); magnetic disk storage media; optical storage media; flash memory devices; electrical, optical, acoustical or other form of propagated signals (e.g., carrier waves, infrared signals, digital signals, etc.); etc.
[0121] Use of the words “one embodiment”, or “an embodiment”, or similar language does not imply that there is only a single embodiment of the invention, but rather indicates that in the particular embodiment being discussed it is one of several possible embodiments.
[0122] Thus, a method and apparatus for nonlinear multiple motion model and moving boundary extraction have been described.
Claims
- 1. A method for motion estimation comprising:
receiving an input image; receiving a set of reference images; partitioning said input image into regions; and for each region:
extracting one or more motions; and extracting one or more associated moving boundaries.
- 2. The method of claim 1 wherein said set of reference images is selected from the group consisting of one or more past frames, one or more future frames, and one or more past frames and one or more future frames.
- 3. The method of claim 2 wherein extracting said one or more motions and extracting said one or more associated moving boundaries involves a multiple motion model with a nonlinear coupling between space and time variables, and a boundary model directly coupled to said one or more motions.
- 4. The method of claim 3 wherein said extracting one or more associated moving boundaries is determined implicitly from a region competition model, which is driven by reducing a prediction error for a boundary selection.
- 5. The method of claim 3 wherein an estimate for an associated moving boundary for 2 motions is based on duality of occlusion relative to a past frame and a future frame.
- 6. The method of claim 3 wherein said time variable allows for a combined motion estimation with respect to a past frame and a future frame in order to capture 2 motions.
- 7. The method of claim 3 wherein said time variable allows for a combined motion estimation with respect to a set of past and future frames in order to capture more than 2 motions with non-intersecting boundaries.
- 8. The method of claim 3 wherein a nonlinear function of said time variable, denoted t1, is coupled to pixel positions, denoted (x,y), and is used to control and refine an estimate of said one or more associated moving boundaries, and has a form:
- 9. The method of claim 8 wherein a pixel assignment to a reference frame, and hence a motion class/state, is determined by coupling the method of claim 8 to one or more motion fields, wherein said coupling results in a nonlinear coupled model which evolves according to a driving force to reduce prediction error, and said extracted moving boundaries, and said motion states are derived from this prediction error minimization, and wherein F(s) from claim 8 in this nonlinear coupled model saturates to reference time values away from particular said associated moving boundaries, and is steeper near particular said associated moving boundaries.
- 10. The method of claim 9 wherein for the case of 2 motions, using a past frame and a future frame as reference images, said particular said associated moving boundaries are determined when substantially s=−0.5.
- 11. The method of claim 9 wherein said motion model has a form for 2 motions of:
- 12. The method of claim 11, wherein said boundary model is a smooth function of said pixel positions and has a form:
- 13. The method of claim 11, where said motion model for each motion may be any standard model.
- 14. The method of claim 13 wherein said any standard model is an affine model having a form:
- 15. The method of claim 9 wherein said motion model has a form for extraction of more than 2 motions with non-intersecting boundaries of:
- 16. The method of claim 15, wherein said boundary model has smooth functions of pixel coordinates of a form:
- 17. The method of claim 15, wherein said motion model for each motion may be any standard model
- 18. The method of claim 17 wherein said any standard model is an affine model having a form of:
- 19. The method of claim 15, wherein said time variable for more than 2 motions is of a form:
- 20. The method of claim 11, wherein a nonlinear time referencing equation for extraction of 2 motions has a form:
- 21. The method of claim 19, wherein said parameters {wj}, which control widths of said one or more associated boundaries, itself varies dynamically in said motion model, such that a system may select the best boundary widths {wj} according to a minimum prediction error.
- 22. The method of claim 19, wherein said parameters {wj} are initially fixed and small during a first estimation of parameters for said motion model, and then successively reduced in re-estimation stages of said parameters for said motion model.
- 23. The method of claim 11, wherein said motion and boundary/interface model parameters characterizing the quantities {{right arrow over (v)}i,B,F} for the said model are determined from a steepest descent algorithm to minimize prediction error, and use multiple resolution layers and projection of said parameters from one layer to a next layer.
- 24. The method of claim 15, wherein said motion and boundary/interface model parameters characterizing the quantities {{right arrow over (v)}i,Bi,F}for the said model are determined from a steepest descent algorithm to minimize prediction error, and use multiple resolution layers and projection of said parameters from one layer to a next layer.
- 25. The method of claim 4 wherein said motion model has a form for 2 motions of:
- 26. The method of claim 25, wherein said boundary model is a smooth function of said pixel positions and has a form:
- 27. The method of claim 25, where said motion model for each motion may be any standard model.
- 28. The method of claim 27 wherein said any standard model is an affine model having a form:
- 29. The method of claim 4 wherein said motion model has a form for extraction of more than 2 motions with non-intersecting boundaries of:
- 30. The method of claim 29, wherein said boundary model has smooth functions of pixel coordinates of a form:
- 31. The method of claim 29, wherein said motion model for each motion may be any standard model.
- 32. The method of claim 31 wherein said any standard model is an affine model having a form of:
- 33. The method of claim 29, wherein said time variable for more than 2 motions is of a form:
- 34. The method of claim 25, wherein a nonlinear time referencing equation for extraction of 2 motions has a form:
- 35. The method of claim 33, wherein said parameters {wj}, which control widths of said one or more associated moving boundaries, itself varies dynamically in said motion model, such that a system may select a best boundary width w according to a minimum prediction error.
- 36. The method of claim 33, wherein said parameters {wj} are initially fixed and small during a first estimation of parameters for said motion model, and then successively reduced in re-estimation stages of said parameters for said motion model.
- 37. The method of claim 25, wherein said motion and boundary/interface model parameters characterizing the quantities {{right arrow over (v)}i,B,F} for the said model are determined from a steepest descent algorithm to minimize prediction error, and use multiple resolution layers and projection of said parameters from one layer to a next layer.
- 38. The method of claim 29, wherein said motion and boundary/interface model parameters characterizing the quantities {{right arrow over (v)}j,Bj,F}for the said model are determined from a steepest descent algorithm to minimize prediction error, and use multiple resolution layers and projection of said parameters from one layer to a next layer.
- 39. The method of claim 2 wherein the number of said extracted one or more motions is no greater than the number of reference image frames.
- 40. The method of claim 1 wherein the number of said extracted one or more associated moving boundaries is no greater than the number of said set of reference image frames.
- 41. A processing system comprising a processor coupled to a memory, which when executing a set of instructions performs the method of claim 1.
- 42. A machine-readable medium having stored thereon instructions, which when executed performs the method of claim 1.
- 43. An apparatus for motion estimation comprising:
means for receiving an input image; means for receiving a set of reference images; means for partitioning said input image into regions; and for each region:
means for extracting one or more motions; and means for extracting one or more associated moving boundaries.
- 44. The apparatus of claim 43 wherein said set of reference images is selected from the group consisting of one or more past frames, one or more future frames, and one or more past frames and one or more future frames.
- 45. The apparatus of claim 44 wherein said means for extracting one or more motions and said means for extracting one or more associated moving boundaries involves a multiple motion model with a nonlinear coupling between space and time variables, and a boundary model directly coupled to said one or more motions.
- 46. The method of claim 45 wherein said motion model has a form for 2 motions of:
- 47. The method of claim 45 wherein said motion model has a form for extraction of more than 2 motions with non-intersecting boundaries of:
- 48. A machine-readable medium having stored thereon information representing the apparatus of claim 43.
- 49. An apparatus for improvement of a standard motion segmentation comprising:
means for receiving an input image; means for receiving a set of reference images; means for partitioning said input image into regions; and for each region:
means for extracting one or more motions; and means for extracting one or more associated moving boundaries.
- 50. The apparatus of claim 49 wherein said set of reference images is selected from the group consisting of one or more past frames, one or more future frames, and one or more past frames and one or more future frames.
- 51. The apparatus of claim 50 wherein said means for extracting one or more motions and said means for extracting one or more associated moving boundaries involves a multiple motion model with a nonlinear coupling between space and time variables, and a boundary model directly coupled to said one or more motions.
- 52. The method of claim 51 wherein said motion model has a form for 2 motions of:
- 53. The method of claim 51 wherein said motion model has a form for extraction of more than 2 motions with non-intersecting boundaries of:
- 54. A machine-readable medium having stored thereon information representing the apparatus of claim 49.
- 55. An apparatus for preprocessing an image for a non-rigid boundary tracker comprising:
means for receiving an input image; means for receiving a set of reference images; means for partitioning said input image into regions; and for each region:
means for extracting one or more motions; and means for extracting one or more associated moving boundaries.
- 56. The apparatus of claim 55 wherein said set of reference images is selected from the group consisting of one or more past frames, one or more future frames, and one or more past frames and one or more future frames.
- 57. The apparatus of claim 56 wherein said means for extracting one or more motions and said means for extracting one or more associated moving boundaries involves a motion model with a nonlinear coupling between space and time variables, and a boundary model directly coupled to said one or more motions.
- 58. The method of claim 57 wherein said motion model has a form for 2 motions of:
- 59. The method of claim 57 wherein said motion model has a form for extraction of more than 2 motions with non-intersecting boundaries of:
- 60. A machine-readable medium having stored thereon information representing the apparatus of claim 55.