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

Contents

[edit] Summary

Description

Illustration of en:Nearest neighbor interpolation on a dataset. Compare with Image:BilinearInterpolExample.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];
DataNearestFine  = interp2(Xcoarse, Ycoarse, DataCoarse, Xfine, Yfine, 'nearest');
figure
surf(Xfine, Yfine, DataNearestFine); shading flat; colormap(jet); view(0, 90)
hold on; plot3(Xcoarse, Ycoarse, 10*ones(size(Xcoarse)), 'k.', 'MarkerSize', 20)
print -dpng -r200 Nearest2DInterpolExample.png

PNG file have also been cropped before uploading

[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 | +/-


[edit] Format

This image should be recreated using vector graphics as an SVG file. This has several advantages; see Commons:Media for cleanup for more information. If an SVG form of this image is already available, please upload it. After uploading an SVG, replace this template with template {{Vector version available|new image name.svg}} in this image.

العربية | Български | Català | Česky | Dansk | Deutsch | English | Esperanto | Español | Français | 한국어 | Italiano | Magyar | Lietuvių | Nederlands | 日本語 | Polski | Português | Română | Русский | Suomi | Svenska | Türkçe | Українська | Tiếng Việt | मराठी | ‪中文(繁體)‬ | ‪中文(简体)‬ | +/-

File history

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

Date/TimeDimensionsUserComment
current10:55, 9 June 20081,308×1,042 (9 KB)Berland (Reverted to version as of 10:38, 21 June 2007. Uploaded new image does not match with text.)
08:06, 9 June 20081,024×1,024 (5 KB)Ti chris (Nearest neighbor image stretch of a 4x4 pixel grid Category:Image processing Category:Image processing)
10:38, 21 June 20071,308×1,042 (9 KB)Berland (== Summary == {{Information |Description=Illustration of en:Nearest neighbor interpolation on a dataset. Compare with Image:BilinearInterpolExample.png and Image:BicubicInterpolationExample.png, they share the dataset. |Source=self-made in )
10:34, 21 June 20071,308×1,042 (9 KB)Berland (== Summary == {{Information |Description=Illustration of en:Nearest neighbor interpolation on a dataset. Compare with Image:BilinearInterpolExample.png and Image:BicubicInterpolationExample.png, they share the dataset. |Source=self-made in )
21:24, 19 June 20071,032×889 (4 KB)Berland (== Summary == {{Information |Description=Illustration of en:Nearest neighbor interpolation on a dataset. Compare with BilinearInterpolExample.png and BicubicInterpolationExample.png, they share the dataset.. |Source=self-made in [[:en:Matlab])
21:17, 19 June 20071,240×979 (6 KB)Berland ({{Information |Description=Illustration of en:Nearest neighbor interpolation on a dataset. Compare with BilinearInterpolExample.png and BicubicInterpolationExample.png, they share the dataset.. |Source=self-made in en:Matlab |Date= |Auth)
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):