File:BilinearInterpolExample.png

From testwiki
Jump to navigation Jump to search
    Original file (1,980 × 1,536 pixels, file size: 57 KB, MIME type: image/png)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    File:Interpolation-bilinear.svg is a vector version of this file. It should be used in place of this PNG file when not inferior.

    File:BilinearInterpolExample.png → File:Interpolation-bilinear.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

    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
    Author Berland

    Matlab code

    [Xcoarse, Ycoarse] = meshgrid([0 1 2 3], [0 1 2 3]);
    [Xfine, Yfine] = meshgrid(linspace(0,3,1500), linspace(0,3,1500));
    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)
    colorbar
    print -dpng -r300 BilinearInterpolExample.png
    

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

    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.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    image/png

    20c5298c2fd646b860738bed5ebad3cd0517f1eb

    58,253 byte

    1,536 pixel

    1,980 pixel

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current18:49, 3 June 2010Thumbnail for version as of 18:49, 3 June 20101,980 × 1,536 (57 KB)wikimediacommons>Aiyizolosslessly converted to 66 color mode.

    There are no pages that use this file.