一、编程环境:
OpenCV | 4.1.0 |
IDE | Visual Studio 2017 Enterprise (15.9.13) |
操作系统 | Windows 10 x64 中文专业版 (1903) |
二、OpenCV 中的图像翻转函数:flip()
//图像旋转函数
void flip(InputArray src, OutputArray dst, int flipCode);
//旋转标记 (即 int flipCode 的取值)
enum RotateFlags {
ROTATE_90_CLOCKWISE = 0, //顺时针旋转 90 度
ROTATE_180 = 1, //顺时针旋转 180 度
ROTATE_90_COUNTERCLOCKWISE = 2, //顺时针旋转 270 度
};