https://github.com/adamlm/pyransac
A generic random sample consensus (RANSAC) framework.
https://github.com/adamlm/pyransac
random-sample-consensus ransac
Last synced: about 1 month ago
JSON representation
A generic random sample consensus (RANSAC) framework.
- Host: GitHub
- URL: https://github.com/adamlm/pyransac
- Owner: adamlm
- License: mit
- Created: 2020-04-14T02:29:33.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-06T00:21:42.000Z (over 2 years ago)
- Last Synced: 2025-03-23T19:05:46.007Z (about 2 months ago)
- Topics: random-sample-consensus, ransac
- Language: Python
- Size: 87.9 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://codecov.io/gh/MeelonUsk/pyransac)
[](https://pyransac.readthedocs.io/en/latest/?badge=latest)# `pyransac` package
This package is a general random sample consensus (RANSAC) framework. For
convenience, some data models (such as a straight line) are already provided.
However, you are free to define your own data models to remove outliers from
arbitrary data sets using arbitrary data models.# General usage
There are two main components to this package: the RANSAC estimator and a
data model. When calling the estimation function `find_inliers`, you need to
specify the model to which you expect your data to fit.A data model is class containing the model parameters and an error function
against which you can test your data. Each data model must implement the
interface defined by the `Model` base class. In other words, you need to
implement the `make_model` and `calc_error` functions.Additionally, you need to provide parameters for the RANSAC algorithm. These
parameters are contained in the `RansacParams` class.