This invention relates to a motion-compensated temporal recursive filter.
Noise in digital video sequences poses a serious problem for video compression engines. Noise typically has high spatial (and temporal) frequency coefficients. In video compression this noise either consumes many bits to encode, or leads to unpleasant artefacts if the bit rate is too low to allow the noise to be encoded. Therefore it is desirable to remove noise from video streams prior to encoding.
v
t(x,y)=kut(x,y)+(1−k)vt−1(x,y) Equation. 1
For a video sequence consisting of a still scene, i.e. the same on every frame, with noise, which is different on every frame, such a filter will attenuate the noise in accordance with the central limit theorem. Experimentally it has been shown that such a filter also provides useful noise reduction in slowly moving sequences.
However, when the image contains fast motion, the moving object leads to “ghosting” in the image. The delayed frame no longer matches the incoming frame, so pails of the moving object appear as a fading trail behind the object in motion. Useful noise attenuation may still be observed in areas away from the moving object.
This problem has led to adoption of a known motion-adaptive temporal recursive filter (MATRF), as shown in
This filter works in the same way as the TRF of
In principle this filter attempts to identify areas of movement activity within the sequence, by comparing the source and delayed output, and then increases k in these regions. This increases a proportion of the source signal being passed to the output and decreases the feedback, thereby reducing the ghosting artefacts, but also reducing the degree of noise attenuation.
There is a large variety of suitable functions for the motion adaptation block 7. Algorithms with good performance are able to adapt to local, temporal and spatial, statistics so that strong noise attenuation is still possible in areas with low motion even when other parts of the same image contain strong motion. However, the MATRF has a fundamental limitation in that noise cannot be safely removed in areas which are in motion.
This filter is sometimes referred to as a motion-compensated temporal recursive filter. For a more in-depth view of the MATRF see patent applications GB 0610967.2, GB 0610968.0, GB 0610972.2 and GB 0611222.1.
However, whereas the MATRF of
Historically the motion estimation block 8 has employed block-based motion estimation. Where differently moving objects are contained within a same block, this leads to artefacts in the reconstructed image, leading to poor prediction and poor noise attenuation in these areas. The combined processes of motion estimation and reconstruction are referred to as motion compensation herein.
Inter-field processing is in general not used in the MATRF because such processing gives unpleasant effects of vertical judder on static images. The picture delay 5 is therefore usually a frame delay.
It is an object of the present invention at least to ameliorate the aforesaid disadvantages in the prior art.
According to the invention there is provided motion compensation means for a time recursive filter comprises: block motion estimation means having as inputs an input video signal and a delayed output signal of the time recursive filter and arranged to output block motion vectors to at least one block splitting stage arranged to subdivide blocks into partitions and together with the input video signal and the delayed output signal of the time recursive filter to determine vectors for each partition for input into image reconstruction means to produce a motion-compensated image.
Advantageously, the motion compensation means further comprises over-sampling means arranged to produce an over-sampled reference surface for use in at least one refinement engine means arranged to provide a vector with a greater precision than a resolution of the input video in any splitting stages downstream of the refinement engine means and in the image reconstruction means.
According to a second aspect of the invention, there is provided a method of providing motion compensation for a time recursive filter comprising steps of: estimating block motion vectors from an input video signal and a delayed output signal of the time recursive filter; outputting the estimated vectors to the at least one block splitting stage which together with the input video signal and the delayed output signal of the time recursive filter is arranged to produce sub-block motion vectors; and inputting the sub-block motion vectors into image reconstruction means to produce a motion-compensated image.
Advantageously, the method further comprises producing an over-sampled reference surface for use in refinement engine means, in any block splitting stages downstream of the refinement engine means and in the image reconstruction means.
According to a third aspect of the invention, there is provided a computer program product comprising code means for performing all the steps of the method described above when the program is run on one or more computers.
According to a fourth aspect of the invention, there is provided computer program product as described above embodied by a computer storage medium.
The invention will now be described, by way of example, with reference to the accompanying drawings in which:
In the Figures, like reference numbers denote like parts.
A method of splitting a field of block motion vectors into a field of sub-block motion vectors is disclosed in the Applicant's co-pending application filed under reference number P115606GB.
Preferably the lowest level of vectors has a separate vector for every pel in the image.
The ability of the split algorithm to generate useful vectors at the pel level overcomes the deficiency in the prior art that a block situated on a boundary between two objects with different motion is not well predicted if a block is represented with only one motion vector. However, the appearance of the prediction and hence the output image contains other undesirable artefacts:
Both of these deficiencies may be overcome by a well-known process of image refinement. This allows motion to be compensated to within an accuracy of typically ½ or ¼ of a pel.
One beneficial effect of performing motion refinement to half-pel or better resolution, is that it allows compensation for vertical shift between alternate fields of a picture. This has a beneficial effect because it allows inter-field motion estimation to be performed accurately. Without a half-pel refinement stage, there will always be a half-line mismatch between the reconstructed and input images, which manifests itself as reduced noise suppression and/or a vertical wobble in the output image.
Inter-field prediction keeps the temporal difference between frames, and hence the required range of the motion estimator, as low as possible. The picture delay 5 is also reduced.
It will be understood that the number of stages of splitting and the position of any refinement engine within the splitting stages is a design parameter of the filter. The choice of where to place the refinement engine is influenced by two factors:
A typical system might use an initial block size of 16 by 16 pels, two stages of splitting to give vectors corresponding to 4×4 blocks, refinement of the 4×4 block vectors, and two further stages of splitting to give pel vectors.
A splitting method, as in, for example the Applicant's co-pending application filed under reference no. P115606GB, is applied to the motion estimator within a motion-compensated temporal recursive filter for noise reduction, giving separate vectors for every pel.
Both chrominance and luminance may be considered.
The resulting video sequence has better noise reduction and introduces less artefacts than a classical block-based MCTRF. This is an important technology for a pre-processing stage prior to applying a compression algorithm to a video signal.
Number | Date | Country | Kind |
---|---|---|---|
0622490.1 | Nov 2006 | GB | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/GB2007/004294 | 11/9/2007 | WO | 00 | 8/12/2009 |