Abstract:
Non-linear picture transformations in a video image motion compensation system are caused by camera zooms or rotations. Sets of trial vectors are derived for each block of the image representing peak correlation values between adjacent images in the sequence. A constant representing the non-linear transformation is estimated using the sets of trial vectors and this enables a vector representing the non-linear transformation to be added to the trial vector list for each block.

Description:
This application is a continuation of application Ser. No. 08/302,937 filed on Mar. 3, 1995, now abandoned, which is a 371 of PCT/GB93/00600 filed Mar. 3, 1993. 
    
    
     FIELD OF THE INVENTION 
     This invention relates to video image motion measurement and in particular to such motion measurement when there is a camera zoom, rotation, or some other non-linear translation between adjacent fields of the video image. 
     BACKGROUND OF THE INVENTION 
     In our United Kingdom Patent No. GB-B-2188510 a method for TV picture motion measurement is described in which a plurality of motion vectors are derived for each of a plurality of measurement blocks of a picture and from these a list of motion vectors is derived which are applicable over the whole area of each block. The process is then repeated over the whole area of the picture. These vectors are derived using a phase correlation technique. One of these is then assigned to each elementary area of each block of the image. Other methods are also possible for generating such a list of motion vectors, for example the block matching technique described in European Patent Application No. EP-A-0395264. Each elementary area of a region of the picture to which a vector is assigned may be as small as a picture element (pixel) or it may comprise a plurality of picture elements for a block of the picture. The motion vectors thus derived may be used, for example, to generate output fields at instants in time intermediate of the time of two input fields. Such intermediate fields are required when producing slow motion effects, when transferring video images to or from film, or in standards conversion. 
     The methods used for deriving the motion vectors have been found to be highly satisfactory for stationary camera positions but have led to problems when a zoom of the camera is involved or a rotation of the camera about its viewing access. These problems have been particularly serious when such a zoom or rotation has been combined with a camera pan and the methods for deriving the motion vectors have in some cases broken down completely in these situations. 
     SUMMARY OF THE INVENTION 
     Preferred embodiments of the present invention seek to provide a machine method for extracting a motion component due to camera zoom or rotation from the gross movements in a scene. The component for each picture region will be proportional to the distance of that region from a particular point in the image. This is achieved by estimating a constant representing a non-linear transformation, from sets of trial vectors and then adding a vector defining the non-linear transformation to the trial vector list for each block. 
     The invention is defined in the appended claims to which reference should now be made. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     Preferred embodiments of the invention will now be described in detail by way of example with reference to the accompanying drawings in which: 
     FIG. 1 shows schematically the type of motion vector derived by a conventional TV picture motion measurement system; 
     FIG. 2 shows schematically the effect of a camera pan; 
     FIG. 3 shows the effect of a camera zoom on the top row of picture regions shown in FIG. 2; 
     FIG. 4 and 5 show zoom and pan surfaces derived using an embodiment of the invention; 
     FIG. 6 shows a block diagram of an apparatus according to a preferred embodiment of the present invention. 
     FIG. 7 is a schematic illustration of a process for extracting a motion component due to camera zoom in accord with a preferred embodiment of the present invention; and 
     FIG. 8 is a schematic illustration of a simple process for extracting a motion component due to camera zoom in accord with a preferred embodiment of the present invention. 
    
    
     DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS 
     In FIG. 1 two adjacent frames of a television signal, F0 and F1, are shown schematically. These are separated by a time T. An object 2 is shown in both F0 and F1 and this object moves from a first position in F0 to a second position in F1. A TV picture motion measurement system of the type described in GB2188510 is used to analyse differences between F0 and F1 and this produces a vector V which describes the motion of the object 2 between the adjacent frames or fields. 
     In FIG. 2 a frame F1 is shown divided up into plurality of regions for which sets of trial motion vectors are derived by the motion measurement system. Typically 108 regions are used and a set of trial vectors is derived for each region. Preferably these regions overlap so that motion across boundaries can be more easily tracked. A camera pan has taken place between F0 and F1 and thus the motion measurement produces a translational vector in the trial vector set which is applied to each region of the image to define the camera pan. In addition to this, regions of the image which include movements of the type shown in FIG. 1 will include in their trial vector lists, vectors to define this type of movement, such that the motions of any foreground objects superimposed on the background pan action will be properly defined by the motion vectors when assigned to elementary areas. The pan vectors are background vectors to any motion in the scene. 
     It has been found that the pan vector can be easily derived for simple camera panning movements since this normally occurs in 60% or more of the blocks into which the TV pixel is divided. However, when a zoom is also involved a small amount of zoom will cause the derivation of the pan vector to fail. 
     In order to correct the system to take account of any camera zoom or rotation a rather more involved process has been devised in an embodiment of the present invention to extract a zoom component as well as any pan component from the vectors applied to a region of the picture. 
     Two vectors assigned to different blocks in a frame F1 of a sequence are derived from a comparison of the image in F1 with that in F0. These will represent general movement in the scene, and will comprise two components. One component due to pan will be a constant value over the whole picture and may be 0. The other component will be non-linear and may be due to zoom or rotation. This is a motion directed towards, away from, or rotationally about a point in the picture, usually the centre, with a value proportional to the distance from that point. A rotation about a non-central point can be defined as a pan plus a rotation about the centre. 
     In FIG. 3 the effect of a zoom on the top row of picture regions of FIG. 2 is illustrated. At P1 a background vector V1 is derived. This is comprised of a pan vector PV1 and a zoom vector ZV1. At P2 a second background vector V2 is derived. This comprises a pan vector PV2 (equal to PV1) and a zoom vector ZV2. 
     The points P1 and P2 are relative to the centre of the picture. This leads to a pair of simultaneous equations as follows: 
     
         V1=Pan.sub.-- vector+Zoom.sub.-- constant*P1 
    
     
         V2=Pan.sub.-- vector+Zoom.sub.-- constant*P2 
    
     Thus: 
     
         V1-V2=Zoom.sub.-- constant*P1-Zoom.sub.-- constant*P2 and: ##EQU1## so that: 
    
     
         Pan.sub.-- vector=V1-Zoom.sub.-- constant*P1. 
    
     An estimate of zoom constant is made using equation 1 by using every vector in a trial vector set for a region and comparing it in equation 1 with every vector in the trial vector sets of all the other regions in the image. From these it is possible to derive the zoom constant for the image as a whole whether or not there are any transient movements within the scene. This is done by deriving a map of the zoom constant for all the pairs of vectors in the scene and deriving the zoom constant to be the most commonly occurring value from this zoom map. Values derived will be random unless they correspond to a source object on which the zoom acts. 
     Once the sets of trial vectors have been derived, the whole analysis of the zoom and pan vectors can be summarised as follows: 
     a) Create a map of all possible zoom values with real and imaginary axes and set the map to zero. 
     b) Derive an estimate of zoom --  constant from equation (1) for a pair of picture regions from the sets of trial vectors for those regions. This is repeated for all pairs of picture regions but not for vectors from the same block. Each estimate of the zoom constant is then plotted on the zoom map. 
     c) Filter the zoom map to give a smooth surface. 
     d) The zoom peak is taken to be the largest non-zero peak with a small imaginary component above a threshold. Imaginary components are due to camera rotations and are normally quite small. 
     e) For each block and vector in the original trial vector list, the zoom component is removed by subtracting the zoom --  constant multiplied by the block location: 
     
         Vn.sub.-- de-zoom=Vn-Pn*zoom.sub.-- constant 
    
     If there is no zoom then Zoom-constant=0 and Vn --  de-zoom=Vn. 
     f) Create a map of all possible pan values and set the map to zero. 
     g) Add a constant token in the pan map at a position corresponding to the value of Vn --  de-zoom. Repeat for all Vn --  de-zoom. 
     h) Filter the pan map to give a smooth surface and find the maximum value. Set a threshold equal to half the maximum. 
     i) The peaks in the pan surface corresponds to gross movements in the picture. Normally the largest non-zero peak above threshold is the pan. If a zero is the large peak and there are no others above threshold than pan=0. 
     j) Starting with the largest peak in the pan surface, calculate the pz --  vector for each block and add it to the block if a suitable vector is not already there: 
     
         pz.sub.-- vector(n)=pan.sub.-- vector+zoom.sub.-- constant*Pn 
    
     CCD cameras tend to give a zero peak vector when no zoom is involved. This is thought to be because of background noise in the CCD cells. Thus in the presence of zoom it is unlikely to find more than one pan vector, but often two are found if there is no zoom. If the number of pan vectors is set at a large number it is still unlikely to add more than one or two vectors. 
     The zoom surface derived by the above steps is shown in FIG. 4 with the zoom peak indicated. The method described in the steps above is illustrated in FIG. 7. The x axis represents forwards and backwards movement of objects due to zoom, i.e. motion into and out of the screen as a result of zoom, whilst the y axis represents rotation. Similarly, the pan surface is shown in FIG. 5 with the largest non zero peak being the pan vector. 
     Using this method enables a combined zoom and pan vector to be added to the trial vector list for each region and vectors are then assigned to elementary areas of picture region. This leads to a vector assignment system which defines background motion more precisely and reduces errors close to foreground objects. This makes it much more straightforward to track background objects close to foreground objects within the scene and as result to assign the correct vector to an intermediate field derived at a time between F0 and F1. 
     An alternative method of finding the pan is to go through all the vectors after zoom correction and count the number of vectors that are within a small distance of the reference. The vector with the largest number of neighbours will be the pan or a gross motion. 
     It will be appreciated by a man skilled in the art that the method described herein can be implemented in computer software or in dedicated hardware in a well known manner. It is the actual steps of deriving the zoom and pan components of the image which are crucial to this particular embodiment of the invention rather than any particular hardware used to derive them. 
     For example, a block diagram such as shown in FIG. 6 could be implemented by the skilled artisan based on the above disclosure. Trial vectors are input on line 63 to an estimation unit 61, made up of a comparing unit 611 and constant estimation unit 612. Constant estimation unit 612 is in turn made up of simultaneous equation derivation unit 6121 and constant derivation unit 6122. The output of estimation unit 61 is supplied to an adding unit 62 which receives a second input from the trial vectors input on line 63. 
     To simplify the method for deriving pan and zoom vectors it has been proposed that rather than produce zoom and pan maps, a 1D plot could be used with real axes to derive the zoom constant. This would, of course, ignore any imaginary component due to camera rotation. 
     In this simplified implementation rotation in the zoom map of FIG. 4 is completely ignored and only motion due to zoom is plotted. As rotation usually only involves movements of one or two pixels no serious reduction in accuracy results. This simplified method is illustrated in FIG. 8. 
     For the pan analysis vectors are split into x and y components. The two components are then analysed separately for the vectors derived to produce a peak pan value in each of the x and y directions. 
     The processing power required to perform this simplified implementation is considerably less than that used for the full analysis. The processing power can be reduced further by ignoring the duplicated data produced by overlapping blocks.