|
椭圆拟合
【1】https://github.com/xiamenwcy/EllipseFitting、https://icl.utk.edu/lapack-for-windows/clapack/index.html#build、http://eigen.tuxfamily.org/index.php?title=Main_Page
【2】将离散点转化到图像上,采用opencv进行椭圆拟合
- double E_cx = 0;
- double E_cy = 0;
- double E_rl = 0;
- double E_rs = 0;
- double E_phi = 0;
- FitEllipse1D(X, Y, out E_cx, out E_cy, out E_rl, out E_rs, out E_phi);
- Mat Ellp = new Mat();
- GenEllipse(out Ellp, (int)E_cx, (int)E_cy, -E_phi * 180 / 3.1415926, E_rs, E_rl, 500, 500);
复制代码
b站视频
【VS2017编译Eigen和Clapack-哔哩哔哩】 [url]https://b23.tv/1iflwHy[/url]
|
|