中转站

it2026-01-22  4

#include<opencv2/core.hpp> #include<opencv2/highgui.hpp> #include<opencv2/imgproc.hpp> #include<ros/ros.h> using namespace cv; using namespace std; #include<iostream> #include<string> //输入图像 Mat img; //显示原图的窗口 string windowName = "src"; //输出图像的显示窗口 string dstName = "dst"; //输出图像 Mat dst; int int main(int argc, char **argv) { /* code for main function */ img = imread("/home/pictures/02.jpg",1); imshow(windowName, img); return 0; }

 

最新回复(0)