[Tex/LaTex] Using multi row and multi column for table

multirowtables

Using multi row and multi column, how can I generate the following table in latex?

Required table

What I got so far:

\documentclass{article}
\usepackage{multirow}
\begin{document}
\begin{tabular}{|l|l|l|l|l|l|l|l|l|l|l|l|}\hline
  \multirow{1}{*}{Test}  &  & Image 1 & I2 & I3 & I4 & I5 & I6 & I7 & I8 & I9 & I10 \\ \cline{1-12}
  \multirow{2}{*}{1}
  & \multirow{1}{*}{A} & x & x & x & x & x & x & x & x & x & x \\ \cline{2-12}
  & \multirow{1}{*}{B} & x & x & x & x & x & x & x & x & x & x \\ \cline{1-12}
  \multirow{2}{*}{2}
  & \multirow{1}{*}{A} & x & x & x & x & x & x & x & x & x & x \\ \cline{2-12}
  & \multirow{1}{*}{B} & x & x & x & x & x & x & x & x & x & x \\ \cline{1-12}
  \multirow{2}{*}{3}
  & \multirow{1}{*}{A} & x & x & x & x & x & x & x & x & x & x \\ \cline{2-12}
  & \multirow{1}{*}{B} & x & x & x & x & x & x & x & x & x & x \\ \cline{1-12}
  \multirow{2}{*}{4}
  & \multirow{1}{*}{A} & x & x & x & x & x & x & x & x & x & x \\ \cline{2-12}
  & \multirow{1}{*}{B} & x & x & x & x & x & x & x & x & x & x \\ \cline{1-12}
  \multirow{2}{*}{5}
  & \multirow{1}{*}{A} & x & x & x & x & x & x & x & x & x & x \\ \cline{2-12}
  & \multirow{1}{*}{B} & x & x & x & x & x & x & x & x & x & x \\ \cline{1-12}
  \multirow{2}{*}{6}
  & \multirow{1}{*}{A} & x & x & x & x & x & x & x & x & x & x \\ \cline{2-12}
  & \multirow{1}{*}{B} & x & x & x & x & x & x & x & x & x & x \\ \cline{1-12}
  \multirow{2}{*}{7}
  & \multirow{1}{*}{A} & x & x & x & x & x & x & x & x & x & x \\ \cline{2-12}
  & \multirow{1}{*}{B} & x & x & x & x & x & x & x & x & x & x \\ \cline{1-12}
\end{tabular}
\end{document}

Best Answer

\documentclass[10pt,letterpaper]{article}

\usepackage{multirow}
\usepackage{hhline}
\usepackage{ctable}
\begin{document}
    \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|}\hline\hline\omit\vline
        \strut\multirow{1}{*}{ Test\phantom{\LARGE H}} 
        & \multirow{1}{*}{} & Image 1\phantom{\LARGE H}%
 & I2 & I3 & I4 & I5 & I6 & I7 & I8%
     & I9 & I10 \\ \hline\hline
        \multirow{2}{*}{1}
        & \multirow{1}{*}{A} & x & x & x & x & x & x & x & x & x & x \\%
     \cline{2-12}
        & \multirow{1}{*}{B} & x & x & x & x & x & x & x & x & x & x \\%
     \specialrule{.2em}{.1em}{.1em}
        \multirow{2}{*}{2}
        & \multirow{1}{*}{A} & x & x & x & x & x & x & x & x & x & x \\%
          \cline{2-12}
        & \multirow{1}{*}{B} & x & x & x & x & x & x & x & x & x & x \\%
          \specialrule{.2em}{.1em}{.1em}
        \multirow{2}{*}{3}
        & \multirow{1}{*}{A} & x & x & x & x & x & x & x & x & x & x \\%
          \cline{2-12}
        & \multirow{1}{*}{B} & x & x & x & x & x & x & x & x & x & x \\%
          \specialrule{.2em}{.1em}{.1em}
        \multirow{2}{*}{4}
        & \multirow{1}{*}{A} & x & x & x & x & x & x & x & x & x & x \\%
          \cline{2-12}
        & \multirow{1}{*}{B} & x & x & x & x & x & x & x & x & x & x \\%
          \specialrule{.2em}{.1em}{.1em}
        \multirow{2}{*}{5}
        & \multirow{1}{*}{A} & x & x & x & x & x & x & x & x & x & x \\%
          \cline{2-12}
        & \multirow{1}{*}{B} & x & x & x & x & x & x & x & x & x & x \\%
          \specialrule{.2em}{.1em}{.1em}
        \multirow{2}{*}{6}
        & \multirow{1}{*}{A} & x & x & x & x & x & x & x & x & x & x \\%
          \cline{2-12}
        & \multirow{1}{*}{B} & x & x & x & x & x & x & x & x & x & x \\%
          \specialrule{.2em}{.1em}{.1em}
        \multirow{2}{*}{7}
        & \multirow{1}{*}{A} & x & x & x & x & x & x & x & x & x & x \\%
          \cline{2-12}
        & \multirow{1}{*}{B} & x & x & x & x & x & x & x & x & x & x \\%
              \hline\hline
    \end{tabular}
\end{document}

![enter image description here