首页 > 解决方案 > 使用 Ransac 进行二次模型估计

问题描述

我正在尝试根据此示例使用 Ransac 进行模型拟合:https ://scikit-image.org/docs/dev/auto_examples/transform/plot_ransac.html#sphx-glr-auto-examples-transform-plot-ransac -py

根据https://scikit-image.org/docs/0.13.x/api/skimage.measure.html#skimage.measure.LineModelND,如果我选择 model_class 作为 LineModel 它将使我的数据与标准线模型 y = a x + b。相反,我想用二次函数 y = a x^2 + b*x + c 拟合我的数据。有没有办法用 scikit-image 或 opencv 库来做到这一点?

标签: pythonopencvscikit-imageransacquadratic-curve

解决方案


推荐阅读