17.12.2012 Views

MOPEX User's Guide - IRSA

MOPEX User's Guide - IRSA

MOPEX User's Guide - IRSA

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.

8.4.5 Cubic: Bicubic Interpolation<br />

<strong>MOPEX</strong> User’s <strong>Guide</strong><br />

For the bicubic interpolation the value O(j) of the output pixel j is computed as a linear<br />

combination of the input pixel values<br />

16<br />

∑<br />

O( j) = C( j,i)I(i)<br />

i=1<br />

Equation 8.14<br />

at the 16 positions i closest to j. The coefficients C(j,i) depend on the distance between the points:<br />

C( j,i) = h(x j − x i)h(y j − y i );<br />

a30 x<br />

h(x) =<br />

3<br />

+ a20 x 2<br />

+ a10 x + a00, a31 x 3<br />

+ a21 x 2<br />

⎧<br />

⎪<br />

⎨<br />

+ a11 x + a01, ⎪<br />

⎩<br />

0,<br />

0 ≤ x

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

Saved successfully!

Ooh no, something went wrong!