Android OpenCV(五十):图像翻转

这是我参与更文挑战的第 21 天,活动详情查看: 更文挑战

图像翻转

图像翻转

图像翻转操作,就是将图像二维数组沿水平轴,垂直轴或者两个轴进行翻转操作。

dstij={srcsrc.rowsi1,jif  flipCode=0srci,src.colsj1if  flipCode>0srcsrc.rowsi1,src.colsj1if  flipCode<0\texttt{dst} _{ij} = \left\{ \begin{array}{l l} \texttt{src} _{\texttt{src.rows}-i-1,j} & if\; \texttt{flipCode} = 0 \\ \texttt{src} _{i, \texttt{src.cols} -j-1} & if\; \texttt{flipCode} > 0 \\ \texttt{src} _{ \texttt{src.rows} -i-1, \texttt{src.cols} -j-1} & if\; \texttt{flipCode} < 0 \\ \end{array} \right.

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享