Jump to content

File:Nearest2DInterpolExample.png

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (1,316 × 1,038 pixels, file size: 9 KB, MIME type: image/png)

Summary

Description Illustration of en:Nearest neighbor interpolation on a dataset. Compare with File:BilinearInterpolExample.png and File:BicubicInterpolationExample.png, they share the dataset.
Source Own work in en:Matlab
Author Berland
Other versions
File:Interpolation-nearest.svg is a vector version of this file. It should be used in place of this PNG file when not inferior.

File:Nearest2DInterpolExample.png → File:Interpolation-nearest.svg

For more information, see Help:SVG.

In other languages
Alemannisch  العربية  беларуская (тарашкевіца)  български  বাংলা  català  нохчийн  čeština  dansk  Deutsch  Ελληνικά  English  British English  Esperanto  español  eesti  euskara  فارسی  suomi  français  Frysk  galego  Alemannisch  עברית  hrvatski  magyar  հայերեն  Bahasa Indonesia  Ido  italiano  日本語  ქართული  한국어  lietuvių  македонски  മലയാളം  Bahasa Melayu  norsk bokmål  Plattdüütsch  Nederlands  norsk nynorsk  norsk  occitan  polski  prūsiskan  português  português do Brasil  română  русский  sicilianu  Scots  slovenčina  slovenščina  српски / srpski  svenska  தமிழ்  ไทย  Türkçe  татарча / tatarça  українська  vèneto  Tiếng Việt  中文  中文(中国大陆)  中文(简体)  中文(繁體)  中文(马来西亚)  中文(新加坡)  中文(臺灣)  中文(臺灣)  +/−
New SVG image

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)
colorbar
print -dpng -r200 Nearest2DInterpolExample.png

PNG file have also been cropped before uploading

Licensing

Public domain This work has been released into the public domain by its author, Berland. This applies worldwide.
In some countries this may not be legally possible; if so:
Berland grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.


Format

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

File history

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

Date/TimeThumbnailDimensionsUserComment
current17:53, 3 June 2010Thumbnail for version as of 17:53, 3 June 20101,316 × 1,038 (9 KB)Aiyizolosslessly converted to 66 color mode.
09:35, 16 June 2008Thumbnail for version as of 09:35, 16 June 20081,316 × 1,038 (11 KB)Berlandadd colorbar to the image
10:55, 9 June 2008Thumbnail for version as of 10:55, 9 June 20081,308 × 1,042 (9 KB)BerlandReverted to version as of 10:38, 21 June 2007. Uploaded new image does not match with text.
08:06, 9 June 2008Thumbnail for version as of 08:06, 9 June 20081,024 × 1,024 (5 KB)Ti chrisNearest neighbor image stretch of a 4x4 pixel grid Category:Image processing Category:Image processing
10:38, 21 June 2007Thumbnail for version as of 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 2007Thumbnail for version as of 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 2007Thumbnail for version as of 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 2007Thumbnail for version as of 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 2 pages use this file:

Global file usage

The following other wikis use this file: