霍夫变换源程序#include"opencv2/opencv.hpp"#definePI3.1415926intmain(intargc,char*argv[]){cv::Matimage=cv::imread("road.jpg");cv::Matresult;cv::cvtColor(image,result,CV_BGRA2GRAY);cv::Matcontours;//边缘检测cv::Canny(result,contours,125,350);std::vectorlines;