I have three images that don't have the same size. I want to arrange them horizontally in a way that they are centered. I tried this code, it works for the positionning. But I don't know how I can add a subcaption to each image and a caption for the whole figure package like in the figure below.
\begin{figure}[!h]
\centering
$\vcenter{\hbox{\includegraphics[height=3.5cm]{image_a}}}$
\qquad
$\vcenter{\hbox{\includegraphics[height=7cm]{image_b}}}$
\qquad
$\vcenter{\hbox{\includegraphics[height=7cm]{image_c}}}$
\caption{image}
\end{figure}
\vcenter
method you found is not for images in afigure
environment. Look at thesubcaption
package.