16 lines
249 B
C++
16 lines
249 B
C++
// 读取图像
|
|
|
|
#include<opencv2/opencv.hpp>
|
|
#include<iostream>
|
|
|
|
using namespace std;
|
|
using namespace cv;
|
|
|
|
int main(){
|
|
Mat src = imread("/home/bi/下载/1.png");
|
|
imshow("input",src);
|
|
waitKey(0);
|
|
destroyAllWindows();
|
|
return 0;
|
|
}
|