[Tex/LaTex] Rotate Header table

rotatingtables

I've recently encountered PDF from a latex document where the header are rotated.
As it's hard to explain I thought an image should be used:

image

Does anyone have any idea how to create such table?

Best Answer

This should be a good start:

\documentclass{article}

\usepackage{graphicx} 
\usepackage{xcolor} 
\usepackage{multirow} 
\usepackage{amsfonts} 

\begin{document}

\def\yes{$\color{green!50!black} \checkmark$}
\def\no{\color{red} X}

\begin{tabular}{|c|c|l|c|c|c||c|} 
\hline
\multirow{3}{*}{\rotatebox{90}{\bf Image}} & 
\multirow{3}{*}{\rotatebox{90}{\bf Differ}} & 
Cavalero et al. 2005 & F/D & \yes & \yes & - \\ 
& & Cheng et al & \yes & \no & - & \no \\
& & Li et al & \no & \no & - & \yes \\
\hline
\hline
\multirow{5}{*}{\rotatebox{90}{\bf Statistical}} & 
\multirow{3}{*}{\rotatebox{90}{\bf Differ}} & 
Cavalero et al. 2005 & F/D & \yes & \yes & - \\ 
& & Cheng et al & \yes & \no & - & \no \\
& & Li et al & \no & \no & - & \yes \\
\cline{2-2}
& PF & Cheng et al & \yes & \no & - & \no \\
\cline{2-2}
& EM & Li et al & \no & \no & - & \yes \\
\hline 
\multicolumn{2}{l}{}  & & & & & \\
\cline{1-3}
\multicolumn{3}{|l}{Features(F) / Dense (D)} & & & & \\
\cline{1-4}
\multicolumn{4}{|l}{Occlusion} & & & \\
\cline{1-5}
\multicolumn{5}{|l}{Multiple Objects} & & \\
\cline{1-6}
\multicolumn{6}{|l}{Spatial continuity} & \\
\hline
\end{tabular}

\end{document}

This is the result:

latex output

Related Question