RANSAC¶
日期 | 2009-05-09(最后修改),2007-04-23(创建) |
---|
In [ ]
ipython -wthread
导入模块并运行测试程序
In [ ]
import ransac
ransac.test()
要使用该模块,您需要创建一个具有两种方法的模型类
In [ ]
def fit(self, data):
"""Given the data fit the data with your model and return the model (a vector)"""
def get_error(self, data, model):
"""Given a set of data and a model, what is the error of using this model to estimate the data """
此类模型的示例是 LinearLeastSquaresModel 类,如文件源代码(如下)所示
部分作者:AndrewStraw、DatChu
附件