logo

get.regression

2019-03-22 15:22
1
_18561538293

line = img.get_regression([(255,255) if BINARY_VISIBLE else THRESHOLD]) #函数返回回归后的线段对象line,有x1(), y1(), x2(), y2(), length(), theta(), rho(), magnitude()参数。

我想知道 这个get.regression()这个函数底层怎么写的 ,这么厉害底层算法我想看看 ,它是怎么根据最小二乘法拟合的

2019-03-22 15:40
I
网红小智智 星瞳科技

https://github.com/openmv/openmv/blob/4f209ea9b1937499e8d3e54c89c04f5c2107f275/src/omv/img/stats.c#L705