Ask Your Question

Revision history [back]

ocl_rotate

hi all,

could you take a look at the code in copy.cpp

am i missing something or we can remove the line below and static bool ocl_rotate(..) completely

CV_OCL_RUN(_dst.isUMat(), ocl_rotate(_src, _dst, rotateMode))

ocl_rotate

hi all,

could you take a look at the code in copy.cpp

am i missing something or we can remove is there an unnecessary code repeat? ( the line part below and static bool ocl_rotate(..) completelyis exactly same )

CV_OCL_RUN(_dst.isUMat(), ocl_rotate(_src, switch (rotateMode)
{
case ROTATE_90_CLOCKWISE:
    transpose(_src, _dst);
    flip(_dst, _dst, rotateMode))
1);
    break;
case ROTATE_180:
    flip(_src, _dst, -1);
    break;
case ROTATE_90_COUNTERCLOCKWISE:
    transpose(_src, _dst);
    flip(_dst, _dst, 0);
    break;
default:
    break;

ocl_rotate

hi all,

could you take a look at the code in copy.cpp

is there an unnecessary code repeat? ( the part below is exactly same )

switch (rotateMode)
{
case ROTATE_90_CLOCKWISE:
    transpose(_src, _dst);
    flip(_dst, _dst, 1);
    break;
case ROTATE_180:
    flip(_src, _dst, -1);
    break;
case ROTATE_90_COUNTERCLOCKWISE:
    transpose(_src, _dst);
    flip(_dst, _dst, 0);
    break;
default:
    break;