//未上传 #include<iostream> #include<opencv2/opencv.hpp> using namespace std; using namespace cv; int main() { printf(CV_VERSION); Point start(0, 4); Point end(200, 77); int thickness = 2; int lineType = 8; Mat image = imread("F:\\数据集\\数字图像处理标准测试图\\BaboonRGB.bmp",2|4); Mat image1 = image.clone(); line(image,start,end,Scalar(0, 256, 0), thickness, lineType);//画线 namedWindow("直线"); imshow("直线",image); int row = image.rows; //获得宽 int col = image.cols; Point center(row/2, col/2); circle(image1,center,2,8);//画实心圆 namedWindow("圆"); imshow("圆", image1); waitKey(0); //system("pause");//最好不要用此句 return 0; }
|
|