Loading [MathJax]/jax/output/HTML-CSS/jax.js
MedicalVisualization

Bilinear Interpolation

1D Texture Interpolation | | 3D Texture Interpolation Nearest Neigbour

An image (or cross section) is a 2D matrix of picture elements (pixels). The image is defined by the function values (resp. color triples) Cij at the pixel’s center points Pij.

The latter grid layout is called cell-centric representation. If function values are given directly at the grid points, the representation is called grid-centric.

An image (or cross section) is interpolated with bi-linear interpolation, which is short for 2 consecutive linear interpolations in the x- and y-direction.

A single linear interpolation has the form

f(u)=(1u)a+ub

with u being the normalized interpolation coefficient in the range [0,1] and a and b being the two values to be interpolated. A linear interpolation has the following characteristics:

f(0)=a,f(1)=b

Bi-linear interpolation creates a single interpolated value (blue) from 4 neighbouring pixels (red) by two subsequent linear interpolations along the two axis with respective normalized interpolation weights u and v.

Given: 4 discrete color values C00,C10,C01,C1 at the centers P00,P10,P01,P1 of 4 neighboring pixels.

Wanted: continuous interpolated color C(u,v) within the interpolation area (u,v)[0,1]x[0,1]

C(u,v)=
(1v)((1u)C00+uC10)+
v((1u)C01+uC11)


1D Texture Interpolation | | 3D Texture Interpolation Nearest Neigbour

Options: