opencv图片旋转90度

opencv rotate

#include <iostream>
#include <opencv2/opencv.hpp>

using namespace std;
using namespace cv;

int main()
{
    Mat img1, img2;
    

    img1 = imread("L:\\2021_12_!7\\img\\IMG_20211217_091726.jpg");
    resize(img1, img1, cv::Size(480, 640));
    imshow("win1",img1);

    rotate(img1,img2,0);
    imshow("win2", img2);

    waitKey(0);
    return 0;
}




///

 

 

 

#########################

posted @ 2021-12-18 15:57  西北逍遥  阅读(578)  评论(0编辑  收藏  举报