|
|
@ -833,14 +833,14 @@ static bool ocl_rotate(InputArray _src, OutputArray _dst, int rotateMode) |
|
|
|
switch (rotateMode) |
|
|
|
switch (rotateMode) |
|
|
|
{ |
|
|
|
{ |
|
|
|
case ROTATE_90_CLOCKWISE: |
|
|
|
case ROTATE_90_CLOCKWISE: |
|
|
|
_dst.getUMat() = _src.getUMat().t(); |
|
|
|
transpose(_src, _dst); |
|
|
|
flip(_dst, _dst, 1); |
|
|
|
flip(_dst, _dst, 1); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case ROTATE_180: |
|
|
|
case ROTATE_180: |
|
|
|
flip(_src, _dst, -1); |
|
|
|
flip(_src, _dst, -1); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case ROTATE_90_COUNTERCLOCKWISE: |
|
|
|
case ROTATE_90_COUNTERCLOCKWISE: |
|
|
|
_dst.getUMat() = _src.getUMat().t(); |
|
|
|
transpose(_src, _dst); |
|
|
|
flip(_dst, _dst, 0); |
|
|
|
flip(_dst, _dst, 0); |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
@ -859,14 +859,14 @@ void rotate(InputArray _src, OutputArray _dst, int rotateMode) |
|
|
|
switch (rotateMode) |
|
|
|
switch (rotateMode) |
|
|
|
{ |
|
|
|
{ |
|
|
|
case ROTATE_90_CLOCKWISE: |
|
|
|
case ROTATE_90_CLOCKWISE: |
|
|
|
_dst.getMat() = _src.getMat().t(); |
|
|
|
transpose(_src, _dst); |
|
|
|
flip(_dst, _dst, 1); |
|
|
|
flip(_dst, _dst, 1); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case ROTATE_180: |
|
|
|
case ROTATE_180: |
|
|
|
flip(_src, _dst, -1); |
|
|
|
flip(_src, _dst, -1); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case ROTATE_90_COUNTERCLOCKWISE: |
|
|
|
case ROTATE_90_COUNTERCLOCKWISE: |
|
|
|
_dst.getMat() = _src.getMat().t(); |
|
|
|
transpose(_src, _dst); |
|
|
|
flip(_dst, _dst, 0); |
|
|
|
flip(_dst, _dst, 0); |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|