当我尝试将文本对齐到此图像的中心时,它反而向左移动,任何建议都将不胜感激!下面包含一个片段
\begin{tabular}{ccc|cc|cc}
&
& Ground Truth & Spatial Mask & Output & Random Mask & Output\\
\multirow{4}{*}{\rotatebox[origin=c]{90}{Mask Coverage}} &
{\rotatebox[origin=c]{90}{70\%}} % this is aligning on the side of the image&
\includegraphics[scale=0.155]{resfig/gt/00135.png} &
\includegraphics[scale=0.155]{resfig/ganr/00130.png} &
\includegraphics[scale=0.155]{resfig/ganr/00130.png} &
\includegraphics[scale=0.155]{resfig/ganr/00130.png} &
\includegraphics[scale=0.155]{resfig/ganr/00130.png}\\
& {\rotatebox[origin=l]{90}{60\%}} &
\includegraphics[scale=0.155]{resfig/gt/00135.png} &
\includegraphics[scale=0.155]{resfig/ganr/00130.png} &
\includegraphics[scale=0.155]{resfig/ganr/00130.png} &
\includegraphics[scale=0.155]{resfig/ganr/00130.png} &
\includegraphics[scale=0.155]{resfig/ganr/00130.png}\\
答案1
你有
\rotatebox[origin=c]{90}{70\%}} % this is aligning on the side of the image
\includegraphics[scale=0.155]{resfig/gt/00135.png}
因此 70% 的中心与图像的参考点(即其底部边缘)对齐
您可以垂直居中对齐图像(使用\includegraphics[valign=..
adjustbox包中的键,但通常最好“用眼睛”来做,因此使用
\rotatebox{90}{\hspace{3cm}70\%}}
\includegraphics[scale=0.155]{resfig/gt/00135.png}
调整到\hspace
与图像相邻的位置。