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}