Bilinear Interpolation Between Four Samples

Bilinear interpolation mixes along one axis on each of two rows, then mixes those intermediate values along the other axis.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace one midpoint
  2. Choose boundary behavior

Trace one midpoint

With corner values \(0,4\) on the first row and \(8,12\) on the second, the central position averages all four to six. Along the first edge midpoint it gives two. Linear interpolation supplies each step.

Choose boundary behavior

Outside the known rectangle, the same formula can extrapolate. A resampler may clamp, pad, or reject according to its contract. See crop intervals.[1][2]

References

  1. scikit-image Contributors, NumPy Images and Coordinate Conventions ↩
  2. scikit-image Contributors, Image Data Types and Representable Values ↩