Image:Bilininterp.png

From Wikipedia, the free encyclopedia

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is a freely licensed media file repository. You can help.

[edit] Summary

Own work.

Illustrates bilinear interpolation on the unit square. The four corners have fixed values as indicated in the figure, and the values in between are interpolated, and the interpolated values are represented by the colour.

Done in Matlab, source code:

# Grid of known points:
>> [X, Y] = meshgrid(0:1)
# Grid for interpolated values:
>> [XI,YI] = meshgrid(0:0.001:1);
# Known values to interpolate from:
>> Z = [0 1; 1 0.5]
# Do bilinear interpolation
>> ZI = interp2(X,Y,Z,XI,YI);
# Visualize result:
>> surf(XI,YI,ZI, 'EdgeColor','none'); alpha(0.9)
>> view([0 90])
>> print -dpng Bilininterp.png

[edit] See also

[edit] Licensing

Public domain I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide.

In case this is not legally possible:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.


Afrikaans | Alemannisch | Aragonés | العربية | Asturianu | Български | Català | Česky | Cymraeg | Dansk | Deutsch | Eʋegbe | Ελληνικά | English | Español | Esperanto | Euskara | Estremeñu | فارسی | Français | Galego | 한국어 | हिन्दी | Hrvatski | Ido | Bahasa Indonesia | Íslenska | Italiano | עברית | Kurdî / كوردی | Latina | Lietuvių | Latviešu | Magyar | Македонски | Bahasa Melayu | Nederlands | ‪Norsk (bokmål)‬ | ‪Norsk (nynorsk)‬ | 日本語 | Polski | Português | Ripoarisch | Română | Русский | Shqip | Slovenčina | Slovenščina | Српски / Srpski | Svenska | ไทย | Tagalog | Türkçe | Українська | Tiếng Việt | Walon | ‪中文(简体)‬ | ‪中文(繁體)‬ | zh-yue-hant | +/-

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current20:18, 21 March 20071,002×801 (37 KB)Berland (Own work. Illustrates bilinear interpolation on the unit square. The four corners have fixed values as indicated in the figure, and the values in between are interpolated, and the interpolated values are represented by the colour.)
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):