|
//未上傳 #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:\\數(shù)據(jù)集\\數(shù)字圖像處理標(biāo)準(zhǔn)測(cè)試圖\\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);//畫實(shí)心圓 namedWindow("圓"); imshow("圓", image1); waitKey(0); //system("pause");//最好不要用此句 return 0; }
|
|
|