MOTION COMPENSATED VIDEO IMAGE PROCESSING

Abstract: Motion compensated image processing is performed by producing vectors assigned to elementary areas of video fields. These are produced from at least two video fields in a sequence. A first technique is used to produce the vectors. If an error signal is produced by the first technique then a second technique is used for the production of vectors.

Description: Motion Compensated Video Image Processing This invention relates to video image processing and in particular to motion compensated image processing. Various motion compensation techniques may be used when it is desired to calculate a frame intermediate of two frames in a video sequence. This may be necessary in slow motion simulation or in standards conversion. The positions of moving objects within these fields are calculated with reference to a plurality of the other fields in the sequence. An example of such a motion compensation system is given in our British Patent Application No. 9111348.0. There are two commonly used motion estimation techniques used to produce motion vectors representing the differences between a pair of video images and further techniques exist. The first of these is phase correlation and a technique for implementing this is described in our British Patent Number 2188510B. This produces a list of motion vectors which are applicable over the whole area of the image and over each elementary area of the image. To use the vectors it is necessary to select which of them will apply to a given elementary area of the picture. Each elementary area may be as small as a pixel or may comprise a block of many pixels. Phase correlation has been found to work very well for linear movements in objects and is very rarely confused by detail in the scene. It has not been found, however, to be particularly effective when used on rotating objects or on scenes where small picture elements move in different directions. The other commonly used technique for motion estimation is known as 'block matching' . In this a block of video data n pixels by pixels is compared with a corresponding block in a previous field and with each of a plurality of equally sized blocks within a predetermined range in that previous field. For a pair of interleaved video fields this range might be +/- 8 field lines vertically and +/- 16 pixels horizontally. The block which gives the best match to the original block is then used to derive a motion vector for that block. When block matching systems are used they can easily break down in the matching stage and consequently can introduce inaccuracies when, for example, there is a camera pan. In motion compensation systems the choice has usually been between phase correlation techniques and block matching techniques. The chosen, technique has then been, developed as far as possible to attempt to eliminate any failings caused by particular types of motion. According to the present invention there is provided a method for motion compensated image processing comprising the steps of producing vectors assigned to elementary areas of input video fields from at least two fields in a sequence of video images by means of a first technique and producing vectors assigned to elementary areas of input video fields by means of a second technique in response to an error signal produced by the first technique. A preferred embodiment of the invention will now be described in detail by way of example with reference to the sole figure. In British Patent Application No. 9111348.0 there is described a motion compensated image processing system which uses a phase correlation technique to derive motion vectors. The motion estimation comprises phase correlating the input images and from this deriving a phase correlation surface. The peaks in this correspond to motion peaks and a list of a predetermined number of these above a certain threshold is selected as a trial menu for assigning vectors to elementary areas of the picture for deriving an. output field. A vector is assigned to an elementry area when its match error (calculated by applying the vector to an elementary area of an input field and summing the differences at a second input field} is below a certain level. This embodiment of the present invention comes into operation when the match error for an elementary area exceeds this predetermined level. In such a situation a block matcher is used on that picture area and a best fit vector derived. If the match error for this vector is lower than, that for the phase correlation derived vector and preferably also below the match error then it is assigned to that picture area. The combined system uses the strengths of each method, a correctly assigned vector from the phase correlation has a very high confidence of being true motion and hence a dual system would have a priority for building pictures by this method. Where no good assignment can be made from the phase correlation technique the system will look at the match error of a block match derived vector. The dual system will exploit the natural strengths of each technique and be less complex and more certain than current methods. A simulation using the parameters of a currently available block match integrated circuit confirms that the technique works for those regions of the picture that phase correlation finds difficult. The work to date has been carried out using a block size of 16 pixels and 8 field lines. The range of detected motions are approx +/- 16 pixels and +/- 8 field lines. Over this range of linear displacements either technique will work. In the sole figure an embodiment of the invention is shown in which input video fields 2 are provided to a phase correlator 4 and a block matcher circuit 6. The phase correlator 4 is of the type described in British Patent No. 2188510B and produces a correlation surface 8 at its output. This forms the input to a peak hunter circuit 10 which searches the correlation surface for the highest values thereon. These correspond to the peak motion vectors between a pair of input fields and these trial vectors are provided on outputs V x -V n which form inputs to assignment units 12. Typically the five highest peaks will be used as the set of trial vectors provided at the outputs. Each assignment circuit 12 receives a single vector and tests each elementary area of an input field with that vector and produces an error signal in dependence on the error that vector generates in deriving one field from that input field. These errors 14 are provided in parallel to an error detector 16 for each elementary area in turn. The minimum error signal detected by the error detector 16 is provided at an output coupled to an input A of a thresholding circuit 18. A second input B receives a threshold level. If the error A < B then a control signal for a vector selection 20 is generated which will then select the best assigned vector as determined by the error detection 20 for assignment to that particular elementary area of an input video field. If the error A > B then a second output signal is generated by the thresholding circuit 18. This is an input to two AND gates 22 and 24 which receive their other inputs f om a second thresholding circuit 26, the operation of which will be described below. The second thresholding circuit 26 receives an error signal from the block matcher circuit 6. This block matcher circuit operates on the same input video fields 2 as the phase correlator 4. It generates a best block match, vector 30 which is provided at an input of the vector selection circuit 20. In the thresholding circuit 26 the block match error C is compared with a threshold D. If the error C < D then an output is generated which is coupled to the second output of AND gate 22. Thus if the phase correlation generates an error A greater than threshold B and the block matcher produces an error C less than a threshold D a logical 1 will be generated at the output of AND gate 22. This output is used to control selection circuit 20 to assign the best block match vector to the particular elementary area. If the block match error C > D then a second output of the thresholding circuit 26 provides a signal on the second input of AND gate 24. Thus if both errors A > B and C > D neither the phase correlated vector nor the block match vector will be selected. Instead AND gate 24 will control selection circuit 20 to use a fallback mode for assigning a vector to the particular elementary area. This fallback mode could be a further vector generation and assignment technique. It will be appreciated that there are not two motion estimators feeding trial vectors to competing assignment units in the circuit described above. This is because the vectors from the block matcher are generally less reliable than that of the phase correlator. Instead the block matcher is switched into use when the match error from the phase correlation derived vectors exceeds a predetermined level. The block size of the block matcher is fairly small and good results have been shown without any assignment at all. It is also proposed that for improved resolution in the image the block matches are overlapped 2:1 in both directions and the best vector assigned to the central 1/4 area of the block. It is also proposed to determine an estimate of subpixel movements by matching a 'V shape to the lower match error in the distortion map from the block matcher. The vectors (probably only three plus a pan vector) from the phase correlator are assigned in a well known manner. A good match gives high confidence of being true motion. If the match is above some threshold then the block matcher is left to assign. If the block matcher also shows a high match error then a fallback method is used as before. This would comprise assiging a zero vector to that elementary area. In essence the block matcher is a more sophisticated fallback mode that will allow the processor to cope with most kinds of motion. In a preferred system the match error is normalised by dividing it by the luminance gradient for the picture element in question. It is then compared with the threshold level to decide whether or not to use the block matcher. The reason for this normalisation is that a good match error for a picture with a lot of motion in it will be substantially different to a good match error for a picture with very little motion in it. Thus the normalisation by dividing by the luminance gradient will enable the same threshold level to be used for each picture. The luminance gradient used for normalisation is the greatest value of luminance gradient at a picture element. It is calculated from a combination of the vertical and horizontal gradients.

Claims: CLAIMS 1. A method for motion compensated image processing comprising the steps of producing vectors assigned to elementary areas of video fields from at least two fields in a sequence of video images by means of a first technique and switching to a second technique in response to an error signal produced by the first technique. 2. A method according to claim 1 in which the first technique comprises the steps of deriving a set of motion vectors from a phase correlation between input fields and assigning to an elementary area of a field the vector that gives the best fit in deriving one field from another. 3. A method according to claim 1 or 2 in which the second technique comprises a block matching technique. 4. A method according to claim 1, 2 or 3 including the step of switching to a third technique in response to error signals produced by the first and second techniques. 5. A method according to claim 4 in which the third technique comprises assigning a zero vector to an elementary area. 6. A method according to claim 3 in which the block matching means performs overlapping block matches. 7. A method according to claims 2 in which a predetermined number of motion vectors are used in the assigning step. 8. A method according to any preceding claim including the step of normalising the error in the derivation of an elementary area in the output. 9. A method according to claim 8 in which the normalising step comprises dividing the error for that elementary area by the luminance gradient for that elementary area. 10. Apparatus for motion compensated image processing comprising first means for producing and assigning vectors to elementary areas of video fields, second means for producing and assigning vectors to elementary areas of video fields, means for producing an error signal from the first producing and assigning means, and means for switching from the first to the second producing and assigning means in response to the error signal. 11. Apparatus for motion compensated image processing according to claim 10 in which the first producing and assigning means comprises phase correlation means. 12. Apparatus for motion compensated image processing according to claim 10 or 11 in which the second producing and assigning means comprises block matching means. 13. Apparatus for motion compensated image processing according to claim 10, 11 or 12 including third vector producing and assigning means and in which the switching means switches to the third vector producing and assigning means in response to error signals from the first and second producing and assigning means. 14. Apparatus for motion compensated image processing according to claim 10, 11, 12 or 13 including means for normalising errors in the derivation of an elementry area in an output field.

Inventors: BURL MICHAEL, BURL, MICHAEL
Applicants: BRITISH BROADCASTING CORP, BRITISH BROADCASTING CORPORATION
Application year: 1993
Main classification: H04N7
IPC codes: H04N5, H04N7