08.01.2013 Views

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 17.6 Cubic interpolation<br />

of a signal starts with<br />

equally spaced samples, in<br />

this example 47, 42, 43,<br />

and 46. The underlying<br />

function is estimated to<br />

be a cubic polynomial that<br />

passes through (“interpolates”)<br />

all four samples.<br />

The polynomial is evaluated<br />

between the two<br />

central samples, as shown<br />

by the black segment. Here,<br />

evaluation is at phase offset<br />

�. If the underlying function<br />

isn’t a polynomial,<br />

small errors are produced.<br />

Eq 17.5<br />

Sample value<br />

x − x0<br />

� = ; x0≤ � ≤ x<br />

x1−x 1<br />

0<br />

47<br />

46<br />

45<br />

44<br />

43<br />

42<br />

41<br />

s -1<br />

x-1 x0 � x1 x2 Sample coordinate<br />

outside the interval [x -1 , x 2 ] would be called extrapolation.)<br />

In digital video and audio, we limit x to the range<br />

between x 0 and x 1 , so as to estimate the signal in the<br />

interval between the central two samples. To evaluate<br />

outside this interval, we substitute the input sample<br />

values [s -1 , s 0 , s 1 , s 2 ] appropriately – for example, to<br />

evaluate between s 1 and s 2 , we shift the input sample<br />

values left one place.<br />

With uniform sampling (as in conventional digital video),<br />

when interpolating between the two central samples<br />

the argument x can be recast as the phase offset, or the<br />

fractional phase (�, phi), at which a new sample is required<br />

between two central samples. (See Equation 17.5.)<br />

In abstract terms, � lies between 0 and 1; in hardware,<br />

it is implemented as a binary or a rational fraction. In<br />

video, a 1-D interpolator is usually an FIR filter whose<br />

coefficients are functions of the phase offset. The<br />

weighting coefficients (c i) are functions of the phase<br />

offset; they can be considered as basis functions.<br />

In signal processing, cubic (third-degree) interpolation<br />

is often used; the situation is sketched in Figure 17.6<br />

above. In linear interpolation, one neighbor to the left<br />

and one to the right are needed. In cubic interpolation,<br />

we ordinarily interpolate in the central interval, using<br />

two original samples to the left and two to the right of<br />

the desired sample instant.<br />

178 DIGITAL VIDEO AND HDTV ALGORITHMS AND INTERFACES<br />

s 0<br />

~ g(�)<br />

s 1<br />

s 2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!