Mat rotateImg(Mat img, double angle, Point Center)
{
    Mat M = getRotationMatrix2D(Center, angle, 1.0);
    Mat dst;
  warpAffine(img, dst, M, Size(img.cols, img.rows));
    return dst;
}
posted on 2021-01-14 08:26  doublearmy  阅读(549)  评论(0编辑  收藏  举报