Bilinear Interpolation (BI) Algorithm

Four gain values are determined in the horizontal and vertical patterns depending on the two angles ϑ and φ .

The gain values are weighted with their angle distances:
G ( φ , ϑ ) = | φ | ⋅ G v ( 2 π − ϑ ) + ( π − | φ | ) ⋅ G V ( ϑ ) + ϑ ⋅ G H ( φ ) + ( π 2 − ϑ ) ⋅ G V ( 0 ) | φ | + ( π − | φ | ) + ϑ + ( π 2 − ϑ )
Figure 1. Angles and gains used for the bilinear interpolation.