CORRELATION SIGNAL PROCESSING

Abstract: A method of correlation signal processing particularly for the processing of correlation surfaces which are utilised in estimating the motion within sequences of video pictures, involves matching an assumed quadratic surface in the region of a stationary value.

Description: O 94/01830 CORRELATION SIGNAL PROCESSING This invention relates to correlation signal processing and in the most important example to the processing of correlation surfaces which are utilised in estimating the motion within sequences of video pictures. By measuring the apparent movement in sequences of video images, it is possible to improve the processing which can be applied to such sequences. A particularly good method of motion estimation is disclosed in GB 2 1 88 51 0; this method can be referred to as phase correlation. Briefly, a correlation surface is derived by phase correlating two pictures selectively displaced in the x and y direction. Maxima in the correlation surface can be seen to relate to displacements of objects from one video picture to the next. Once these motion vectors have been identified, it is possible in further processing to assign to each pixel, the appropriate motion vector. It can be shown that a critical factor in motion estimation and in the further processing which relies upon the motion vectors, is the accuracy to which peaks in the correlation surface can be identified. A correlation surface will be sampled and appropriate steps taken to identify a sample point which is "higher" than its immediate neighbours" . Locating the peak to an accuracy of one sample interval is not sufficient, however, and further processing is required to locate the peak to sub-sample intervals. GB 2 1 88 510 suggests an approach by which correlation peaks can be identified in an x,y correlation surface (in the region of an assumed maximum) by fitting to the surface a quadratic function of x and a quadratic function of y. Maxima in the x and y functions can then be determined algebraically. The point having the coordinates x max and y max is assumed to be a peak in the surface. It is found in practice that this approach can give rise to significant errors. This is believed to happen because peaks in "real" correlation surfaces are freαueπtly not both horizontally and vertically symmetric so that the assumptions behind the separable quadratic approach, breakdown. To give a practical example, if an object is moving diagonally in a video field, camera integration may blur the object in the direction of motion while leaving resolution, normal to the motion vector, unaffected . This, in turn, can give rise to a correlation peak which is stretched in the direction of motion. Edge like features in images can also give rise to elongated correlation peaks. It is an object of this invention to provide an improved method of locating a maximum in a sampled correlation surface. Accordingly, the present invention consists, in one aspect, in a method of locating, to sub-sample interval accuracy, a stationary value in a sampled correlation surface S(x,y), compπs'ng the steps of locating a sample point x,y adjacent a stationarv value, developing about x,y a quadratic function Z(x,y); determining the linear coefficients of Z(x,y) which represent a minimised error between S(x,y) and Z(x,y); ana calculating x and y coefficients of the stationary value from said linear coefficients. In a further aspect, the present invention consists in apparatus for locating, to sub-sample interval accuracy, a stationary value in a sampled correlation surface; comprising means for generating a raster scanned sample signal from the correlation surface; a parallel array of spatial filters each receiving said sample signal and arithmetic means receiving the outputs of said filters and deriving coordinates of an assumed stationary value. The invention will now be described by way of example with reference to the accompanying drawings in which:- Figure 1 is a block diagram of peak hunting apparatus according to the present invention; Figure 2 is a block diagram of modified peak hunting apparatus according to the present invention; and Figure 3 is a block diagram illustrating a form of correlation particularly suited for use with the present invention. O 94/01830 4 In accordance with this invention, a two dimensional quadratic function is fitted to a sampled correlation function. The two dimensional quadratic function is selected because it is the most general multi-dimensional polynomial having a single unique maximum. The quadratic surface corresponding to a particular sample point in the correlation surface is determined by a least mean squares fit to that sample point and the eight immediate neighbours. The correlation function S(x,y) is approximated by two dimensional quadratic function Z(x,y) defined as Z .x. y) ~ ax 2 + by 3 + cxy + dx + ey + £ .1) The error between this approximation and the true correlation surface is given by:- 1 1 error - ∑ ∑ (ε (x, y) - z (x, y) ) 2 (2 ) x—i y—\ This can be written in matrix form i.e. error = β. β - ; f et == α s -- z z & z r. ==M M. tc- ( 3 ) Where:- O 94/01830 8 ~ (4 ) It can be shown that the error is minimised, with respect to the coefficient vector C by solving the equations It should be noted that nine sample points of a correlation surface are used to derive only six coefficients. This means that the simultaneous equations cannot be solved in a straightforward algebraic manner. However, by performing a least mean squares fit in the described manner, the noise sensitivity of the peak hunting procedure is significantly reduced. Once the vector C has been determined, the coordinates X max and y max given by Investigations have been conducted to compare the accuracy of peak location in the present invention and the prior art approaches in GB 2 188 510 and elsewhere. Apart from the separable quadratic aporoach 94/01830 suggested in GB 2 1 88 51 0, other functions that have been suggested are separate x and y inverted "V" functions, sιn(x)/x and sιπ(y)/y functions and a "centre of gravity" approach. For the purposes of this analysis, two shapes of correlation peak were postulated. Peak 1 is a circularly symmetric peak, about four samples wide, defined by Paak 1 (x, y) - exp ( -0 . 6 ( x 2 +y a ) ) ( 7 ) Note that the coordinates used are relative to the centre of the peak and the units are sample intervals. Peak 2 is four times wider in one direction than at right angles and is orientated at 45°. It is defined by Pβe_k 2 ix, y) - βxp{- 0 . 6 ( 0 . 53JC 3 - 0 . SΛxy+ Q , S3y 3 ) } ( 8 ) Both peaks were centered equally distant between four sampling sites. Measurements of the peak location were made by fitting each of the above described functions and then using a method according to the present invention The results are set out beiow, in which the method according to this invention is referred to as "non-separable polynomial" . O 94/01830 The errors given are for one coordinate only and the magnitude error is root 2 times greater. It can be seen from inspection that all techniques work reasonably well with a circularly symmetric peak. Indeed, the fitting of separable functions provides an identically correct result. There is a non-zero error in the method according to this invention but it is of low order. In peak 2 , however, there is in each of the four prior art approaches a sample error which is of the order of one half a sample interval. An error of this order is likely to lead to a perceptible degradation in a subsequently processed video image. By contrast, the method according to the present invention provides an error of approximately one tenth of a sample interval. It has been recognised by the present inventor that a solution of the equation O 94/01830 (5) can be provided using very simple hardware. Looking again at equation (5) it can be seen that the vector C is calculated by multiplying the sample vector S by a constant six row, nine column matrix. With a raster scanned correlation surface, this calculation can be conducted using a parallel array of filters, one each for the coefficients of the quadratic function. This filter arrangement is shown in Figure 1 . It will be seen that the raster scan correlation surface is applied in parallel to five filters 100 to 105 corresponding to the coefficients a,b,c,d, and e. Since the constant f does not appear in the relationships for x mBX and y max , it is not necessary to provide a sixth filter corresponding to the coefficient f. Each of these filters is a 3 x 3 spatial filter, and it will be recognised that appropriate delays are set up to enable three adjacent scan lines to be processed. The filter apertures are as follows:- O 94/01830 (c) _ ___. 2. 2 2 2 0 0 0 1 1 1 The filter outputs, representing the coefficients a,b,c,d, and e are taken to an arithmetic unit 120 which performs the calculation shown in equations (7) to derive outputs x max and y max . It will be recognised that the outputs x max and y max are only meaningful in the region of a peak in the surface and some initial processing is required to locate the maximum to within an accuracy of one sample interval. It may be convenient to combine the two steps of locating a peak and then determining the position of the peak to sub-pixel accuracy and reference is directed in this regard to Figure 2. It is first necessary to establish the criteria for detection of a peak. The simplistic approach of looking for a sample which is "higher" than its immediate eight neighbours, is found in practice to miss a proportion of valid peaks. To describe the approach adopted in the present invention, the sample points about a processed sample point P are designated:- A B C D P E F G H These are grouped as [A B C D ] and [E F G H ] and a peak is detected if P is greater than or equal to each of f A B C D ], and P is greater than each of [ E F G H ]. To conduct this process the scanned correlation surface is directed to a first input 200 of a peak detector 203, and through respective delays 204,205 each (of 64 pixels) to a second input 201 and a third input 202. The inputs accordingly receive the signals ABC; DPE and FGH, respectively. If a peak is detected, the amplitude is stored in a peak store 206 with the current sample being available through further delay 207. A sub-pixel processor 208 contains the 3 x 3 filters described above and outputs the sub-pixel offsets x offset and y 0)fset which are presented to the X/Y stack. The stack is controlled so as to hold the coarse and fine x,y coordinates of the, say, four highest peaks which are made available through a FIFO 210. A modification to the present invention is proposed which should reduce still further the error in determining the location of a maximum. Thus it is believed that a factor leading to the residual error in the method according to this invention is that the invention seeks to fit a quadratic function to a surface which may be of higher order. To overcome or reduce the effects of this problem, it is proposed to modify the correlation function in such a way that the peaks are defined by quadratic functions. Referring to Figure 3, prior art phase correlation processing requires a forward fast Fourier transform (FFT) unit 300, frequency domain processing unit 302 and inverse FFT 303. It is proposed in a modification of the present invention to employ a Gaussian window 304 in front of the inverse FFT block 303. Since the Fourier transform of a Gaussian function is of course a Gaussian function, this achieves the result of providing a correlation surface having peaks of Gaussian form. The correlation function is then passed through a logarithmic unit 305 before passing to the peak hunting block 306, which may be exactly as described above. As a result of taking the logarithm of the Gaussian function, the correlation surface in which peaks are sought is quadratic in nature. The Gaussian window 304 may take the form of a multiplier receiving multiplier coefficients from a ROM. The logarithmic unit 305 might comprise a look-up table. It should be recognised that whilst this invention has been described, taking example of phase correlation surfaces, it is equally applicable to other correlation surfaces, such as crossed-correlation surfaces. The invention is of particular benefit in motion estimation but will find application in other video or indeed other signal processing techniques. Whilst it will be usual to seek maxima in a correlation surface, the invention is applicable generally to locating stationary value.

Claims: CLAIMS 1 . A method of locating, to sub-sample interval accuracy, a stationary value in a sampled correlation surface S(x,y), comprising the steps of locating a sample point x,y adjacent a stationary value, developing about x,y a quadratic function Z(x,y); determining the linear coefficients of Z(x,y) which represent a minimised error between S(x,y) and Z(x,y); and calculating x and y coefficients of the stationary value from said linear coefficients. 2. Apparatus for locating, to sub-sample interval accuracy, a stationary value in a sampled correlation surface; comprising means for generating a raster scanned sample signal from the correlation surface; a parallel array of spatial filters each receiving said sample signal and arithmetic means receiving the outputs of said filters and deriving coordinates of an assumed stationary value.

Inventors: BORER TIMOTHY JOHN, BORER, TIMOTHY, JOHN
Applicants: BORER TIMOTHY JOHN, SNELL & WILCOX LTD, SNELL & WILCOX LIMITED
Application year: 1993
Main classification: G06F15
IPC codes: G06F17, G06T7, H04N7