Image:BilinearInterpolExample.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

Description

Illustration of en:Bilinear interpolation on a dataset. Compare with Image:Nearest2DInterpolExample.png and Image:BicubicInterpolationExample.png, they share the dataset.

Source

self-made in en:Matlab

Date
Author

Berland

Permission
(Reusing this image)

see below


[edit] Matlab code

[Xcoarse, Ycoarse] = meshgrid([0 1 2 3], [0 1 2 3]);
[Xfine, Yfine] = meshgrid(linspace(0,3,300), linspace(0,3,300));
DataCoarse = [ 1 2 4 1; ...
               6 3 5 2; ...
               4 2 1 5; ...
               5 4 2 3];
DataBilinearFine = interp2(Xcoarse, Ycoarse, DataCoarse, Xfine, Yfine, 'bilinear');
figure
surf(Xfine, Yfine, DataBilinearFine); shading flat; colormap(jet); view(0, 90)
hold on; plot3(Xcoarse, Ycoarse, 10*ones(size(Xcoarse)), 'k.', 'MarkerSize', 20)
print -dpng -r200 BilinearInterpolExample.png

The files have been cropped in gimp to remove the empty Matlab border.

[edit] Licensing

Public domain I, Berland, 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
current10:54, 9 June 20081,308×1,042 (32 KB)Berland (Reverted to version as of 10:45, 21 June 2007. Use another filename, as there is no longer match between image and text for this image.)
08:08, 9 June 20081,024×1,024 (106 KB)Ti chris (Bilinear image stretch of a 4x4 pixel grid Category:Image processing Category:Image processing)
10:45, 21 June 20071,308×1,042 (32 KB)Berland (== Summary == {{Information |Description=Illustration of en:Bilinear interpolation on a dataset. Compare with Image:Nearest2DInterpolExample.png and Image:BicubicInterpolationExample.png, they share the dataset. |Source=self-made in [[:en:M)
21:26, 19 June 20071,032×889 (17 KB)Berland (== Summary == {{Information |Description=Illustration of en:Bilinear interpolation on a dataset. Compare with Nearest2DInterpolExample.png and BicubicInterpolationExample.png, they share the dataset. |Source=self-made in en:Matlab |Date=)
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):