赛场拍照生成导航地图

#include
#include

using namespace cv;
using namespace std;


int main()
{
    Mat img = imread("1.jpg");
    pyrDown(img, img);
    pyrDown(img, img);
    imshow("test", img);
    resize(img, img, Size(4000, 4000), 0, 0, CV_INTER_LINEAR);
    threshold(img,img, 50, 200,1);
    imwrite("1.pgm", img);
    cout << img.cols << img.rows << endl;
    Mat img1 = imread("1.pgm");
    imshow("test1", img1);
    waitKey(0);
    return 0;
}

你可能感兴趣的:(赛场拍照生成导航地图)