I could achieve the following using figure and table:
And using some multiline alignment I can align the "captions" (which is actually text) to the center:
However I'd like to be able to refer to each row using \ref, therefore I need each row to be a subfigure, with the caption on the left, without the word "Figure".
How can it be achieved?
This is the code I used so far, using a table:
\begin{figure}[ht]
\centering
\par%
\begin{tabular}{ccc}
& RGB & NIR\\
(a) & \includegraphics[width=.3\linewidth]{whatever.jpg} & \includegraphics[width=.3\linewidth]{whatever.jpg}\\
(b) & \includegraphics[width=.3\linewidth]{whatever.jpg} & \includegraphics[width=.3\linewidth]{whatever.jpg}\\
(c) & \includegraphics[width=.3\linewidth]{whatever.jpg} & \includegraphics[width=.3\linewidth]{whatever.jpg}\\
(d) & \includegraphics[width=.3\linewidth]{whatever.jpg} & \includegraphics[width=.3\linewidth]{whatever.jpg}\\
\end{tabular}
\caption{some caption}.}%
\label{fig:fig1}%
\end{figure}
I also managed to do a figure of subfigures, but the captions appeared in the bottom.




