1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

Improve the efficiency as suggested by vpisarev.

Alter the Rotation enum to be unambiguous as to direction.
This commit is contained in:
Tetragramm
2016-11-02 17:44:13 -05:00
parent 6f7bf653f7
commit ad5c50a923
2 changed files with 14 additions and 10 deletions
+2 -2
View File
@@ -1023,9 +1023,9 @@ around both axes.
CV_EXPORTS_W void flip(InputArray src, OutputArray dst, int flipCode);
enum RotateFlags {
ROTATE_90 = 0, //Rotate 90 degrees clockwise
ROTATE_90_CLOCKWISE = 0, //Rotate 90 degrees clockwise
ROTATE_180 = 1, //Rotate 180 degrees clockwise
ROTATE_270 = 2, //Rotate 270 degrees clockwise
ROTATE_90_COUNTERCLOCKWISE = 2, //Rotate 270 degrees clockwise
};
/** @brief Rotates a 2D array in multiples of 90 degrees.
The function rotate rotates the array in one of three different ways: