OpenCV HoughLinesP函数的使用
简单的理解就是首先对纯粹的直线(确实是一条直线,没有断点),根据参数maxLineGap进行连接,然后在对是否满足参数threshold和minLineLength进行判断,最后返回直线。实例#include "stdafx.h"#include <cv.h>#include <highgui.h>#include <math.h>using namespace cv;int main(int argc, char** ...