Files
doc_phd_thesis/021_VideoCoding/Figures/HEVC/AssymetricBlockPartition.tikz
T
2018-07-06 17:56:46 +01:00

82 lines
2.5 KiB
Plaintext

\usetikzlibrary{calc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols,plotmarks,decorations.markings,shadows,backgrounds}
\pgfdeclarelayer{background}
\pgfdeclarelayer{foreground}
\pgfdeclarelayer{L0}
\pgfdeclarelayer{L1}
\pgfdeclarelayer{L2}
\pgfdeclarelayer{L3}
\pgfsetlayers{background,L0,L1,L2,L3,main,foreground}
\newcommand{\scale}{0.7}
\begin{tikzpicture}[scale=\scale,every node/.style={scale=\scale},on grid ]
\definecolor{LCUFill}{rgb}{0,0.5,1}
\definecolor{DrawColor}{rgb}{0,0,0.5}
\definecolor{LCUFill}{rgb}{1,1,1}
\definecolor{DrawColor}{rgb}{0,0,0}
\tikzstyle{TextStyle}=[scale=1.5, text centered]
\tikzstyle{LCU}=[draw=DrawColor, fill=LCUFill,thick]
\tikzstyle{CU}=[draw=DrawColor,thick]
\tikzstyle{PU}=[draw=DrawColor, densely dashed]
% \newcommand{\gridsize}{70}
% \draw[help lines] (-\gridsize,-\gridsize) grid ++(\gridsize*2,\gridsize*2);
\begin{scope}[xshift=0]
\draw[LCU] (0,0) rectangle ++(4,4); % 64x64
\draw[CU] (0,0) rectangle ++(1,4); % 64x64
\draw[CU] (1,0) rectangle ++(3,4); % 64x64
\node[TextStyle] at (2.5,2) {$\frac{3N}{4}\times N$};
\end{scope}
\begin{scope}[xshift=5cm]
\draw[LCU] (0,0) rectangle ++(4,4); % 64x64
\draw[CU] (0,0) rectangle ++(3,4); % 64x64
\draw[CU] (3,0) rectangle ++(1,4); % 64x64
\node[TextStyle] at (1.5,2) {$\frac{3N}{4}\times N$};
\end{scope}
\begin{scope}[xshift=10cm]
\draw[LCU] (0,0) rectangle ++(4,4); % 64x64
\draw[CU] (0,0) rectangle ++(4,3); % 64x64
\draw[CU] (0,3) rectangle ++(4,1); % 64x64
\node[TextStyle] at (2,1.5) {$N\times\frac{3N}{4}$};
\end{scope}
\begin{scope}[xshift=15cm]
\draw[LCU] (0,0) rectangle ++(4,4); % 64x64
\draw[CU] (0,0) rectangle ++(4,1); % 64x64
\draw[CU] (0,1) rectangle ++(4,3); % 64x64
\node[TextStyle] at (2,2.5) {$N\times\frac{3N}{4}$};
\end{scope}
% \draw[CU] (0,0) rectangle ++(16,16); % 64x64
%
% \node[TextStyle] at (4,12) {$32\times32$};
% \draw[CU] (0,0) rectangle ++(8,8); % 32x32
% \draw[CU] (8,8) rectangle ++(8,8); % 32x32
%
% \node[TextStyle] at (10,14) {$16\times16$};
% \draw[CU] (0,0) rectangle ++(4,4); % 16x16
% \draw[CU] (4,4) rectangle ++(4,4); % 16x16
%
% \draw[CU] (8,8) rectangle ++(4,4); % 16x16
% \draw[CU] (12,12) rectangle ++(4,4); % 16x16
%
% \node[TextStyle] at (13,11) {$8\times8$};
% \draw[CU] (12,8) rectangle ++(2,2); % 8x8
% \draw[CU] (14,10) rectangle ++(2,2); % 8x8
\end{tikzpicture}