python - 使用 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 库来做到这一点?
解决方案
推荐阅读
- java - 我怎样才能带来统一格式的电话。数字
- c++ - 声明用于 qml 和 cpp 文件的全局字符串
- android - 如何访问此 api 在 Kotlin 中包含的每一个天气,我想将这些数据放入 RecyclerView 并显示为列表
- javascript - 如何从 LightningChart JS 隐藏特定的点形状?
- c++ - C++ 模板错误:“模板参数的显式指定参数无效”
- python - tkinter 代码对一些 gif 进行动画处理,但不是全部
- netlogo - BehaviorSpace Netlogo- Measure 使用这些报告器运行
- neo4j - Cypher 函数调用根据结果数更改返回值
- codenameone - CN1模拟器openGalery限制
- google-analytics - 现有媒体资源中的 Analytics 新视图未显示实时数据