opencv函数学习:rotate()的使用

rotate()

官方使用说明

void cv::rotate(InputArray src,  OutputArray dst,  int rotateCode) 

#include <opencv2/core.hpp>

Rotates a 2D array in multiples of 90 degrees. The function cv::rotate rotates the array in one of three different ways: Rotate by 90 degrees clockwise (rotateCode = ROTATE_90_CLOCKWISE). Rotate by 180 degrees clockwise (rotateCode = ROTATE_180). Rotate by 270 degrees clockwise (rotateCode = ROTATE_90_COUNTERCLOCKWISE).

Parameters
src input array.
dst output array of the same type as src. The size is the same with ROTATE_180, and the rows and cols are switched for ROTATE_90_CLOCKWISE and ROTATE_90_COUNTERCLOCKWISE.
rotateCode an enum to specify how to rotate the array; see the enum RotateFlags
posted on 2021-02-06 13:58  Cynthia_W  阅读(2534)  评论(0编辑  收藏  举报