Commit Graph
68 Commits
Author SHA1 Message Date
Johannes Schönberger 9d9a4b3e0b Fix some remaining TODO items 2016-02-09 11:11:28 +01:00
Steven Silvester b710bd21d2 Use a stacklevel of 2 by default for all warnings 2016-01-30 08:57:46 -06:00
Johannes Schönberger 50f2a0b4ed Create helper function to compute norm along axis 2015-12-04 23:11:19 -05:00
Johannes Schönberger f88694e5a3 Fix LineModelND test cases 2015-12-04 23:05:59 -05:00
Kevin Keraudren 0bdf4251c6 documentation updates; added "3D" to example title 2015-12-04 22:25:13 +00:00
Kevin Keraudren 6f9a55c987 added deprecation warning for LineModel and added note in TODO.txt 2015-12-04 08:48:08 +00:00
Kevin Keraudren 61b7c20e03 cleaned tests and documentation, added deprecation note in doc for LineModel. 2015-12-03 22:16:56 +00:00
Kevin Keraudren 6a2961fdee we now have the old LineModel with params (dist, theta), and the new LineModelND with params (origin, direction). 2015-12-03 22:03:10 +00:00
Kevin Keraudren 040a53456d Merged LineModel3D with LineModel in order to form a unified model.
- model.params holds the legacy params (2D representation),
 - model.new_params holds the true ND line representation.

The proposed LineModel behaves identically as the implementation in master in the 2D case. In the 3D case, it behaves similarly to the previously proposed LineModel3D, as long as new_params is used instead of params. This implementation thus takes advantage that the 2D case is a special case of the ND general model.
2015-12-02 08:58:16 +00:00
Kevin Keraudren 5bb206233d fixed typo and added blank line 2015-12-01 15:18:57 +00:00
Kevin Keraudren c1c0d18ba1 reformatting code to wrap at 80 characters per line 2015-12-01 14:32:25 +00:00
Kevin Keraudren a606a53875 Adding LineModel3D for RANSAC, unit test and example. 2015-12-01 12:17:22 +00:00
Johannes Schönberger 47a4418140 Use np.inf instead of float('inf') 2015-03-08 19:37:53 -04:00
Johannes Schönberger d6a737bf86 Update doctest for new estimator API 2015-03-08 13:13:46 -04:00
Johannes Schönberger eb6c3ede38 Fix RANSAC for invalid model estimation and confidence corner case
Previously, estimators did not return whether the model estimation
was successful. RANSAC now tests whether the estimation was
successful and skips invalid models.

When the confidence/stop_probability of RANSAC was set to 1,
the iteration was falsely terminated early instead of running for
the maximum number of iterations.
2015-03-06 23:47:08 -05:00
Johannes Schönberger 06fd017828 Improve description of stop_probability 2014-10-01 15:30:27 -04:00
Johannes Schönberger c594416b78 Fix stop_probability description 2014-09-30 20:55:35 -04:00
Johannes Schönberger 15475516d9 Remove extra space 2014-09-30 20:49:23 -04:00
Johannes Schönberger eba3d75fa9 Add sanity checks for input parameters 2014-09-28 18:43:32 -04:00
Johannes Schönberger be5d4b19ec Add stop_probability to RANSAC 2014-09-28 18:38:35 -04:00
blink1073 5677dafe41 Move away from random.random in favor of random.rand 2014-07-19 18:18:23 -05:00
Johannes Schönberger 21a99a39c3 Document params attribute for each class 2014-01-22 18:46:27 -05:00
Johannes Schönberger 9905ff218f Get rid of trailing underscore for params attribute 2014-01-22 18:39:35 -05:00
Johannes Schönberger 9963a25cde Remove wrong comment location 2014-01-19 09:40:55 -05:00
Johannes Schönberger c262ad2d44 Use public attribute for parameter values 2014-01-19 09:40:42 -05:00
Johannes Schönberger 2bc4cf6074 Skip failing ransac doctest 2013-11-18 12:42:19 +01:00
Johannes Schönberger ffc28d1224 Enable doc tests of ransac function 2013-11-15 13:42:57 +01:00
Johannes Schönberger e282b3e9b3 Revert ellipsis to skip directive 2013-11-04 08:21:03 +01:00
Johannes Schönberger bb1f7df444 Improve usage of doctest directives 2013-11-04 08:04:14 +01:00
Johannes Schönberger f038a959ee Skip ransac doctests 2013-11-03 18:26:47 +01:00
Johannes Schönberger 41d12463fd Fix RANSAC doctest 2013-11-03 09:45:33 +01:00
Johannes Schönberger 0d3e752b4d Fix indentation of ransac doc string example 2013-05-26 12:22:26 +02:00
Johannes Schönberger 01124f5bcc Use boolean mask for inlier return value of RANSAC 2013-05-06 18:08:21 +02:00
Johannes Schönberger 785e602aba Fix last remaining PEP8 errors 2013-05-06 15:32:33 +02:00
Johannes Schönberger f18eef6bc0 Add title of wikipedia reference 2013-05-06 11:43:52 +02:00
Johannes Schönberger 63577f275c Update doc string of ransac with new validation functions 2013-05-06 11:41:08 +02:00
Johannes Schönberger 252c889427 Add missing double quotes for equations and code 2013-05-06 11:38:46 +02:00
Johannes Schönberger 9e7fb07d67 Add missing double colons for equations 2013-05-06 11:36:38 +02:00
Johannes Schönberger 5656feb61b Use double quotes for code in doc string 2013-05-06 07:10:05 +02:00
Johannes Schönberger d6c49ea6b8 Add comment to explain commented out code 2013-05-06 07:08:50 +02:00
Johannes Schönberger 660a689255 Add reference for RANSAC 2013-05-04 11:41:25 +02:00
Johannes Schönberger 8d92f5c02b Remove is_degenerate methods from estimation models 2013-05-02 18:30:08 +02:00
Johannes Schönberger a73076157c Replace is_degenerate with is_model_valid and is_data_valid in ransac 2013-05-02 18:30:08 +02:00
Johannes Schönberger 28bda25da8 Add is_degenerate to description of ransac iteration 2013-05-02 18:30:07 +02:00
Johannes Schönberger db496d0af9 Remove trailing brackets 2013-05-02 18:30:07 +02:00
Johannes Schönberger 22224727d3 Add example for ransac and geometric transforms 2013-05-02 18:30:07 +02:00
Johannes Schönberger fb74a9d8ae Add new stop criteria to ransac and improve doc string 2013-05-02 18:30:07 +02:00
Johannes Schönberger 5da3418fff Change ransac function to accept multiple input data arrays 2013-05-02 18:30:07 +02:00
Johannes Schönberger aa309fd926 Replace triple-single-quotes with triple-double-quotes for doc strings 2013-05-02 18:30:07 +02:00
Johannes Schönberger 44ff37c8ee Fix bug in ellipse model estimation due to changed predict_xy output 2013-05-02 18:30:07 +02:00