目录 #include<opencv2/imgcodecs.hpp> #include<opencv2/highgui.hpp> #include<opencv2/imgproc.hpp> #include<iostream> using namespace cv; using namespace std; int main() { string path = "Resources/lambo.png";//图片的路径名 Mat img = imread(path);//将图片加载后赋值到图像变量img中 //if (path.empty()) { cout << "file not loaded" << endl; } //检查文件是否打开 没打开时执行打印语句 //namedWindow("Image", WINDOW_FREERATIO);//创建一个名为Image的可调节的窗口 imshow("Image", img);//创建一个窗口来显示图像img waitKey(0);//不断刷新图像 return 0; }...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile