This invention relates to processing of sub-sampled images.
Image compression systems are now well established in the delivery and storage of audiovisual media. These systems reduce bandwidth or storage requirements of video by exploiting spatial and temporal redundancy in an image by means of mathematical transforms such as Fourier, discrete cosine and entropy coding to minimise a number of symbols needed to represent the image in a compressed domain.
One issue with broadcast feeds is that although there are coding and interface standards that define a nominal horizontal image resolution, in practice an image is frequently encoded in the compression domain with a horizontal resolution lower than this nominal standard. This is done as a bit-saving measure as a reduced horizontal resolution contains less information to be encoded. When video signals processed in this way are decompressed and restored to an uncompressed format they are typically passed via equipment interfaces for further processing, e.g. within a studio, which necessitates the restoration of the standard resolution by means of up-sampling. As a result this signal may subsequently be mistaken for a full standard resolution signal when in fact it is not, having been reduced in horizontal resolution in an upstream system. The fact that this has been done upstream is not normally communicated by any widely known means to a receiving process downstream. The effect of such a practice is unnecessarily to degrade image quality. It is an object of this invention to avoid such degradations by taking account of any discernable upstream down-sampling.
When multiple stages of compression and decoding occur it is often a requirement that the image be processed in some fashion before a next encoding stage. This processing could take many forms such as reduction of noise, reduction of compression artefacts or the gathering of statistics from the video image to direct a next compression stage.
Since horizontal sub-sampling before compression affects both frequency information in the image as well as artefacts produced by compression, operations on an image must cope with all possible scenarios, often requiring further calculations involved or compromising results obtained.
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 an apparatus comprising programmable down-sampling means arranged to receive a video signal; and previously encoded resolution estimator means arranged to provide an estimate of an encoding resolution of the received video signal to the down-sampling means for down-sampling the video signal for subsequent processing of the video signal at a down-sampled resolution.
Advantageously, the apparatus further comprises up-sampling means arranged to receive the estimate from the previously encoded resolution estimator means and to up-sample the video signal after the subsequent processing.
Conveniently, the apparatus further comprises transform function means for transforming the video signal to a transfer domain before down-sampling.
Preferably, the apparatus is arranged to input an output of the transform function means to the programmable down-sampler means and to the previously encoded resolution estimator means.
According to a second aspect of the invention there is provided a method of processing a compressed video signal comprising the steps of: estimating a previously encoding resolution to provide an estimated resolution; and using the estimated resolution to down-sample the compressed video signal to the estimated previously encoded resolution for processing the video signal.
Conveniently, the method further comprises using the estimated resolution to up-sampling the video signal subsequent to the processing.
Advantageously, the method further comprises performing a transform function on the signal prior to down-sampling the video signal so that the video signal is down-sampled in a transform domain.
Conveniently, the method further comprises using the video signal in the transform domain to estimate the previously encoding resolution.
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:
a is a graph representing an ideal edge in the transform domain; and
b is a graph representing an up-sampled edge;
In the Figures, like reference numbers denote like parts.
Referring to
An incoming image at the video input 10 is examined by the previous encoded resolution (PER) detector 11. The video signal at the video input 10 is normally formatted in a standard manner such that a decompression process restores a full nominal standard resolution for interface purposes, not the down-sampled resolution made by filtering in an up-stream compression coder. This loss of resolution, once made up-stream, can never be recovered and thus propagates a degraded signal through a down-stream video transmission chain. The previous encoded resolution detector 11 makes an estimate of the previous encoded resolution and generates a control signal 15 to control the programmable down sampler 12. The programmable down sampler 12 performs a horizontal down sample on the image before the processing module 13 operates on the image. This ensures that, once in a reduced resolution form, the artefacts of up-sampling and subsequent repeated down-sampling do not unnecessarily further degrade image quality.
An optional up-sampling stage 14 after the image processing stage 13 may provide a horizontal up-sampled signal 16 of the image back to the full display resolution. This may or may not form part of a desired processing function.
It may be required that the image be processed in some transformed domain, such as frequency filtering, frequency decomposition or Laplacian transforms. In each case there may be a saving in calculations or improvement in results or performance when working at a lower resolution provided by the down-sampler 12.
A video signal at the video input 10 is first transformed by the transform module 20 and the transform signal down-sampled by the programmable down-sampler 21, controlled by a control signal 25 from the previously encoded resolution estimator 11 before passing through the processing/analysing process 22.
A further optimisation, illustrated in embodiment 300 in
It should be noted that in a real-world system there may be times when the PER of the encoded image is the same as the full display resolution because there has been no up-stream down-sampling. In this case the down and up-sample elements 21, 23 pass the image or transform data, as the case may be, unchanged.
Referring to
a and 4b show examples of the transform domain with, then without, the invention, respectively. This demonstrates an application of system 300 of
The invention thus provides improved performance by minimising calculation effort and variation in performance caused by the use of horizontal sub-sampling.
| Number | Date | Country | Kind |
|---|---|---|---|
| 0622487.7 | Nov 2006 | GB | national |
| Filing Document | Filing Date | Country | Kind | 371c Date |
|---|---|---|---|---|
| PCT/GB07/04296 | 11/9/2007 | WO | 00 | 8/12/2009 |