#sample #consensus #model #ransac #estimator

no-std sample-consensus

Abstractions for sample consensus algorithms such as RANSAC

4 releases (2 stable)

1.0.1 Jun 20, 2020
0.2.0 Dec 27, 2019
0.1.0 Nov 2, 2019

#7 in Robotics

Download history 115/week @ 2020-05-26 130/week @ 2020-06-02 25/week @ 2020-06-09 246/week @ 2020-06-16 116/week @ 2020-06-23 15/week @ 2020-06-30 32/week @ 2020-07-07 54/week @ 2020-07-14 20/week @ 2020-07-21 83/week @ 2020-07-28 26/week @ 2020-08-04 57/week @ 2020-08-11 36/week @ 2020-08-18 43/week @ 2020-08-25 44/week @ 2020-09-01 60/week @ 2020-09-08

272 downloads per month
Used in 11 crates (3 directly)

MIT license

8KB

sample-consensus

Crates.io MIT/Apache docs.rs LoC

sample-consensus provides abstractions for sample consensus algorithms such as RANSAC.

An example of how to use these abstractions is present in the ARRSAC repository.

This allows one to create a RANSAC algorithm (Consensus or MultiConsensus) that is independent of the underlying system. You can also create a Model and an Estimator for different systems. An Estimator only needs to estimate a model from a subset of some data. With this system, you can quickly define an Estimator based on an algorithm, like the 8-point algorithm, and you don't have to worry about the details of how the sample consensus algorithm works. It will just find a model that fits the data based on that estimation algorithm. Crates may exist that create instantiations of any one of those three things.

The design of this system is directly and highly inspired by the information on this page from TheiaSfM. This crate deviates in some ways by avoiding the requirement of making any memory allocation so it can run on embedded. It does this through the use of trait method type parameters so that the caller gets to choose how the data is provided. A big thanks to Chris Sweeney for starting and maintaining TheiaSfM.

No runtime deps