Table of Contents

Method Rotate

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Rotate(InputArray, OutputArray, RotateFlags)

Rotates a 2D array in multiples of 90 degrees.

public static void Rotate(InputArray src, OutputArray dst, RotateFlags rotateCode)

Parameters

src InputArray

input array.

dst OutputArray

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 RotateFlags

an enum to specify how to rotate the array.