资源介绍
霍夫变换源程序
#include "opencv2/opencv.hpp"
#define PI 3.1415926
int main(int argc, char *argv[])
{
cv::Mat image =cv::imread("road.jpg");
cv::Mat result;
cv::cvtColor(image,result,CV_BGRA2GRAY);
cv::Mat contours;//边缘检测
cv::Canny (result,contours,125,350);
std::vector lines;