144 lines
5.0 KiB
Plaintext
144 lines
5.0 KiB
Plaintext
|
|
\newcommand{\DrawFrame}
|
|
{
|
|
\draw[fill=TikZColorFill,fill opacity=1, thick] (0,0) rectangle (10,8); % Opacity
|
|
}
|
|
\newcommand{\DrawFrameBorder}
|
|
{
|
|
\draw[thick] (0,0) rectangle ++(10,8);
|
|
}
|
|
\newcommand{\DrawRandomBlocks}
|
|
{
|
|
\foreach \x in {1,2,...,14}
|
|
\pgfmathparse{round((rand+1)/2*9) }
|
|
\let\roundX\pgfmathresult
|
|
\pgfmathparse{round((rand+1)/2*7) }
|
|
\let\roundY\pgfmathresult
|
|
\draw[errorBlock] (\roundX,\roundY) rectangle ++(1cm,1cm);
|
|
}
|
|
|
|
\begin{tikzpicture}[use Hobby shortcut,closed=true]
|
|
|
|
\def\TikzFrameScale{.3}
|
|
|
|
\tikzstyle{FrameLabels} =[text centered, anchor=center]
|
|
\tikzstyle{labels} =[text centered, font=\footnotesize]
|
|
|
|
\tikzstyle{errorBlock} =[draw, fill=TikZColorBlock0]
|
|
\tikzstyle{errorPropagation} =[draw=TikZColorBlock1, fill=TikZColorBlock1]
|
|
\tikzstyle{refreshBlock} =[fill=TikZColorFillDark,draw]
|
|
|
|
\tikzstyle{arrow} =[draw,-latex, thick]
|
|
\tikzstyle{predictionArrow} =[draw, thick, dashed]
|
|
\tikzstyle{predictionArrowBend} =[->,bend right=15]
|
|
|
|
\def\xfshift{12cm}
|
|
\def\yfshift{.2cm}
|
|
|
|
\def\errorPosX{3}
|
|
\def\errorPosY{5}
|
|
|
|
\begin{scope}
|
|
|
|
\node[labels, text width=3cm] (ErrorPropLabel) at (6.5,-5*\TikzFrameScale) {Error propagation};
|
|
\node[labels, text width=2.1cm] (ErrorLabel) at (-1,6*\TikzFrameScale) {Lost \\ region};
|
|
|
|
\begin{scope}[yshift=0cm]
|
|
\begin{scope}[scale=\TikzFrameScale, yshift=2*\yfshift, xshift=2*\xfshift, yslant=\TikZyslant,xscale=\TikZxscale]
|
|
\DrawFrame
|
|
\coordinate (Center) at (5,3.5);
|
|
\node[FrameLabels] (FrameLabel) at (12cm/2,-1.8cm) { $f_{t+3}$ };
|
|
|
|
\foreach \y in {0,...,4}
|
|
\foreach \x in {0,1,2,3,4,5,6,7,8,9}
|
|
\draw[errorPropagation] (\x,\y) rectangle ++(1 cm,1 cm);
|
|
|
|
\begin{scope}[scale=.8, yshift=5.3cm, xshift=5.8cm]
|
|
\path[refreshBlock, thick] (-3.5,0.5) .. (-3,2.5) .. (-1,3.5).. (1.5,3).. (4,3.5).. (5,2.5).. (5,0.5).. (4.8,0).. (4,-1).. (2.5,-2).. (0,-0.5).. (-3,-2).. (-3.5,0.5);
|
|
\end{scope}
|
|
|
|
\draw[errorPropagation] (6,5) rectangle ++(1 cm,1 cm);
|
|
\draw[errorPropagation] (7,5) rectangle ++(1 cm,1 cm);
|
|
\draw[errorPropagation] (6,4) rectangle ++(1 cm,1 cm);
|
|
\draw[errorPropagation] (7,4) rectangle ++(1 cm,1 cm);
|
|
|
|
\node[labels, anchor=center, yslant=\TikZyslant] at (4,5.5) {\scriptsize ROI};
|
|
|
|
\path[arrow,-] (ErrorPropLabel.50) edge[-latex, bend left] (2,1);
|
|
|
|
\coordinate (f2p0) at (7,5);
|
|
\coordinate (f2p1) at (7,1.8);
|
|
|
|
\coordinate (endPoint) at (9,0);
|
|
\DrawFrameBorder
|
|
\end{scope}
|
|
|
|
\begin{scope}[scale=\TikzFrameScale, yshift=1*\yfshift, xshift=1*\xfshift, yslant=\TikZyslant,xscale=\TikZxscale]
|
|
\DrawFrame
|
|
\coordinate (Center) at (5,3.5);
|
|
|
|
\foreach \y in {0,...,2}
|
|
\foreach \x in {0,1,2,3,4,5,6,7,8,9}
|
|
\draw[errorPropagation] (\x,\y) rectangle ++(1 cm,1 cm);
|
|
|
|
\begin{scope}[scale=.8, yshift=5.3cm, xshift=4.8cm]
|
|
\draw[refreshBlock, thick] (-3,0.5) .. (-2.5,2.5) .. (-.8,3.5).. (1.5,3).. (4.2,2.8).. (5,2.5).. (5,0.5) ..(2.5,-2).. (0,-0.5).. (-1,-.5).. (-3,0.5);
|
|
\end{scope}
|
|
\node[labels, anchor=center, yslant=\TikZyslant] at (4.5,5) {\scriptsize ROI};
|
|
|
|
\path[arrow,-] (ErrorPropLabel.130) edge[-latex, bend right] (8,1);
|
|
|
|
\path[predictionArrow] (f2p0) edge[predictionArrowBend] (7,2);
|
|
\path[predictionArrow] (f2p1) edge[predictionArrowBend] (6,.5);
|
|
|
|
\coordinate (f1p0) at (3,6);
|
|
\coordinate (f1p1) at (3,1.8);
|
|
|
|
\DrawFrameBorder
|
|
\end{scope}
|
|
\node[FrameLabels] at (Center |- FrameLabel) { $f_{t+2}$ };
|
|
|
|
\begin{scope}[scale=\TikzFrameScale, yshift=0*\yfshift, xshift=0*\xfshift, yslant=\TikZyslant,xscale=\TikZxscale]
|
|
\DrawFrame
|
|
\coordinate (Center) at (5,3.5);
|
|
|
|
\foreach \y in {0,1}
|
|
\foreach \x in {0,1,2,3,4,5,6,7,8,9}
|
|
\draw[errorBlock, draw=TikZColorBlock0] (\x,\y) rectangle ++(1 cm,1 cm);
|
|
|
|
\begin{scope}[scale=.8, yshift=4cm, xshift=4.8cm]
|
|
\draw[refreshBlock, thick] (-3.5,0.5) .. (-3,2.5) .. (-1,3.5).. (1.5,3).. (4,3.5).. (5,2.5).. (5,0.5) ..(2.5,-2).. (0,-0.5).. (-3,-2).. (-3.5,0.5);
|
|
\end{scope}
|
|
\node[labels, anchor=center, yslant=\TikZyslant] at (4,4) {\scriptsize ROI};
|
|
\node[labels, anchor=center, yslant=\TikZyslant] at (4,7) {\scriptsize Background};
|
|
|
|
% \path[draw,-latex] (RoiLabel) -- (2.1,5.3);
|
|
\path[arrow,-] (ErrorLabel.-90) edge[-latex, bend right] (2,1);
|
|
|
|
\path[predictionArrow] (f1p0) edge[predictionArrowBend] (4.5,5);
|
|
\path[predictionArrow] (f1p1) edge[predictionArrowBend] (4,1);
|
|
|
|
|
|
\coordinate (startPoint) at (0,0);
|
|
\DrawFrameBorder
|
|
\end{scope}
|
|
\node[FrameLabels] at (Center |- FrameLabel) { $f_{t}$ };
|
|
% \path[draw, -latex] ($(FrameLabel)+(-8.8,-.4)$) -- ($(FrameLabel)+(1.2,-.4)$) node[below] {t}; % node[below, midway, yshift=-4] {(b) ROI based intra-refresh};
|
|
|
|
|
|
|
|
\end{scope}
|
|
|
|
\path[predictionArrow] (-1,-2) edge[predictionArrowBend] ++(-.8,0);
|
|
\node[labels, anchor=west, align=left] at (-1+.1,-2) {\small Inter-frame prediction};
|
|
|
|
|
|
|
|
\path (-1.6,1) rectangle ++(12.3,1);
|
|
\end{scope}
|
|
|
|
|
|
|
|
|
|
\end{tikzpicture}
|