File:Linear Interpolation 2D.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 281 × 156 pixels. Other resolutions: 320 × 178 pixels | 640 × 355 pixels | 1,024 × 568 pixels | 1,280 × 711 pixels | 2,560 × 1,421 pixels.
Original file (SVG file, nominally 281 × 156 pixels, file size: 15 KB)
File information
Structured data
Captions
Summary[edit]
DescriptionLinear Interpolation 2D.svg |
English: bilinear interpolation, upscaling of a 2x2 block by a factor of 2
Deutsch: bilineare Interpolation, Vergrößerung eines 2x2-Blockes um den Faktor 2 |
Date | |
Source | Own work |
Author | Matthias.Kirchner |
This file has been generated using TikZ (with the tex4ht driver).
\documentclass{scrartcl}
\def\pgfsysdriver{pgfsys-tex4ht.def}
\usepackage{tikz}
\usetikzlibrary{calc}
\definecolor{gray100}{gray}{0.3921569}
\definecolor{gray128}{gray}{0.5}
\definecolor{gray132}{gray}{0.5176471}
\definecolor{gray190}{gray}{0.745098}
%% TikZ styles
\tikzstyle{pixel}=[minimum width=1cm,minimum height=1cm,fill,rectangle,text=black,anchor=south west,font=\footnotesize]
\tikzstyle{orig}=[font=\bfseries]
\tikzstyle{weight}=[font=\tiny]
\tikzstyle{connect}=[thick,red!50]
\begin{document}
\thispagestyle{empty}
\begin{tikzpicture}
% original block
\begin{scope}[yshift=-0.5cm]
\node[gray190,pixel,orig] at (0,1) {190};\node[gray132,pixel,orig] at (1,1) {132};
\node[gray128,pixel,orig] at (0,0) {128};\node[gray100,pixel,orig] at (1,0) {100};
\draw[step=1cm,very thin] (0,0) grid (2,2);
\end{scope}
% resampled block
\begin{scope}[xshift=4cm]
\node[gray190,pixel,orig] (A) at (0,1){190};
\node[gray190!50!gray132,pixel] (D) at (1,1){161};
\node[gray132,pixel,orig] (G) at (2,1){132};
\node[gray190!50!gray128,pixel] (B) at (0,0){159};
\node[gray190!50!gray132!50!gray100!50!gray128,pixel] (E) at (1,0){137.5};
\node[gray132!50!gray100,pixel] (H) at (2,0){116};
\node[gray128,pixel,orig] (C) at (0,-1){128};
\node[gray128!50!gray100,pixel] (F) at (1,-1){114};
\node[gray100,pixel,orig] (I) at (2,-1){100};
\draw[step=1cm,very thin] (0,-1) grid (3,2);
\begin{scope}[connect]
\draw[-latex] (A.west) to[out=-160,in=160] node[left,weight] {0.5} ($(B.west)+(0,1pt)$);
\draw[latex-] (B.west) to[out=-160,in=160] node[left,weight] {0.5} (C.west);
\draw[-latex] (G.east) to[out=-20,in=20] node[right,weight] {0.5} ($(H.east)+(0,1pt)$);
\draw[latex-] (H.east) to[out=-20,in=20] node[right,weight] {0.5} (I.east);
\draw[-latex] (A.north) to[out=70,in=110] node[above,weight] {0.5} ($(D.north)-(1pt,0)$);
\draw[latex-] (D.north) to[out=70,in=110] node[above,weight] {0.5} (G.north);
\draw[-latex] (C.south) to[out=-70,in=-110] node[below,weight] {0.5} ($(F.south)-(1pt,0)$);
\draw[latex-] (F.south) to[out=-70,in=-110] node[below,weight] {0.5} (I.south);
\end{scope}
\end{scope}
\end{tikzpicture}
\end{document}
Licensing[edit]
I, the copyright holder of this work, hereby publish it under the following licenses:
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
You may select the license of your choice.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 10:30, 1 August 2009 | 281 × 156 (15 KB) | Matthias.Kirchner (talk | contribs) | {{Information |Description={{en|1=bilinear interpolation, upscaling of a 2x2 block by a factor of 2}} {{de|1=bilineare Interpolation, Vergrößerung eines 2x2-Blockes um den Faktor 2 }} |Source=Own work by uploader |Author=[[User:Matthias.Kirchner|Matthia |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on de.wikipedia.org