突出显示表格中的单行

突出显示表格中的单行

我正在尝试突出显示表格中的最后一行。

我尝试过其他解决方案,但是这些解决方案突出显示表中的单行会导致此错误:

未定义控制序列。\rowcolor

\begin{center}
\begin{tabular}{l l l l l}
\toprule
\textbf{Method} & \textbf{Accuracy} & \textbf{Sensitivity} & \textbf{Specificity} \\
\midrule
Sobel & 0.49\% & 0.20\% & 0.87\%  \\
Canny & 0.49\% & 0.17\% & 0.91\% \\ 
LoG & 0.49\% & 0.17\% & 0.92\%  \\ 
Sobel RGB Extraction  & 0.50\% & 0.15\% & 0.96\% \\ 
Canny RGB Extraction  & 0.55\% & 0.54\% & 0.57\% \\ 
LoG RGB Extraction  & 0.56\% & 0.36\% & 0.84\% \\ 
K-Means  & 0.37\% & 0.42\% & 0.29\% \\ 
Fuzzy C-Means & 0.41\% & 0.44 \% & 0.31 \% \\ 
Otsu's Method & 0.39\% & 0.45\% & 0.32\% \\ 
Local Otsu's Method & 0.49\% & 0.45\% & 0.54\% \\ 
Histogram Thresholding & 0.64\% & 0.52\% & 0.60\%  \\ 
\rowcolor{lightgray} Proposed Method & 0.66\% & 0.64\% & 0.69\% \\
\bottomrule
\end{tabular}
\captionof{table}{Performance of segmentation techniques on the dataset.}
\end{center}

我究竟做错了什么?

谢谢。

相关内容