Jump to content

File:Bilininterp.png

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia
    Original file (1,002 × 801 pixels, file size: 27 KB, MIME type: image/png)

    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
    

    See also

    Licensing

    Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
    In some countries this may not be legally possible; if so:
    I grant 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

    6f32086b17f8bf437dad2f68a9540490d19937ef

    27,711 byte

    801 pixel

    1,002 pixel

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current09:12, 30 June 2023Thumbnail for version as of 09:12, 30 June 20231,002 × 801 (27 KB)PhreneticcReduced file weight with FileOptimizer in lossless compression mode.
    20:18, 21 March 2007Thumbnail for version as of 20:18, 21 March 20071,002 × 801 (37 KB)BerlandOwn 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.

    Global file usage

    The following other wikis use this file: