[Tex/LaTex] Multiple figures in tabular format

graphicssubcaptionsubfloatswrapfigure

I know this issue has been discussed in a lot of other topics, but I couldn't make them work, and my issue is kind of special because it requires text and multiple images in each column, and I want to reference it as a figure.

What I want to obtain looks like this:
enter image description here

I have tried a lot of options with subfig and subcaption packages but none of them worked as expected, so I'm not putting the source code for them here.

My only requirement is that my figure needs to be wrapped inside this code:

\begin{figure*}
    % ...
    \caption{Caption for the whole figure}
    \label{fig:fig1} % I can do without the label too
\end{figure*}

How can I do this?

Thanks for any help!

Best Answer

I think you just want a table:

enter image description here

\documentclass{article}

\usepackage{graphicx}
\begin{document}
\begin{figure*}
   \centering
\begin{tabular}{lccccc}
Input image&
\includegraphics[width=1cm]{example-image}&
\includegraphics[width=1cm]{example-image}&
\includegraphics[width=1cm]{example-image}&
\includegraphics[width=1cm]{example-image}&
\includegraphics[width=1cm]{example-image}\\
Aligned face&
\includegraphics[width=1cm]{example-image-a}&
\includegraphics[width=1cm]{example-image-a}&
\includegraphics[width=1cm]{example-image-a}&
\includegraphics[width=1cm]{example-image-a}&
\includegraphics[width=1cm]{example-image-a}\\
Apparent age&
1&2&3&4&5\\
Predicted age&
5&4&3&2&1
\end{tabular}

    \caption{Caption for the whole figure}
    \label{fig:fig1} % I can do without the label too
\end{figure*}

\end{document}