Commit Graph
29 Commits
Author SHA1 Message Date
Johannes Schönberger 116ef0d649 Remove unit tests for deprecated features 2016-02-09 12:25:55 +01:00
Johannes Schönberger f88694e5a3 Fix LineModelND test cases 2015-12-04 23:05:59 -05: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 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 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 ad85dfabd5 Disable catch of all warnings, return nan params instead 2015-01-22 06:49:16 -05:00
Johannes Schönberger acf68c6d7c Add new parameter to catch exceptions during RANSAC 2015-01-21 14:10:09 -05:00
Steven Silvester c0a0490eed Fix handling of multiple warnings and update tests
Fix handling of multiple warnings

Update all test __init__ files

Update segmentation pkg

Update the color pkg

Update the exposure pkg

Update the filters pkg

Update the io pkg

Update the measure pkg

Update morphology package

Restructure test setup function

Add expected_warnings to __all__

Update restoration pkg.

Remove explicit filter check since it is done elsewhere

Fix the image test helpers

Update the transform pkg

Fix util pkg

Update viewer pkg
2014-12-23 16:51:06 -06:00
Steven Silvester 2756358f3c Clean up PIL plugin and handle more warnings
Use the pil plugin to load data files

Fix install_requires string formatting

Dead end commit

Make all tools executable

Remove debug print

Suppress PIL resourcewarnings

Handle a few more warnings
2014-12-23 16:48:38 -06: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
Johannes Schönberger 9905ff218f Get rid of trailing underscore for params attribute 2014-01-22 18:39:35 -05:00
Johannes Schönberger c262ad2d44 Use public attribute for parameter values 2014-01-19 09:40:42 -05:00
Johannes Schönberger 4d6308c810 Fix error in line model test 2013-11-22 13:28:53 +01:00
Johannes Schönberger 2e8a36a283 Rename test to enable hidden line model test 2013-11-22 12:11:47 +01:00
Johannes Schönberger 219d621725 Set random seed to avoid random test failures 2013-05-06 18:34:34 +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 231596b351 Add test cases for residuals 2013-05-06 12:08:12 +02:00
Johannes Schönberger 434eb48620 Add test case for underdetermined LineModel estimation 2013-05-06 11:51:20 +02:00
Johannes Schönberger c8fa3b48e5 Replace is_degenerate tests with is_data_valid and is_model_valid tests 2013-05-02 18:30:08 +02:00
Johannes Schönberger 82566157f6 Add test case for ransac applied to geometric transform 2013-05-02 18:30:07 +02:00
Johannes Schönberger 80827d3959 Add test case for ransac algorithm 2013-05-02 18:30:07 +02:00
Johannes Schönberger e880f155a9 Add test cases for circle model 2013-05-02 18:30:07 +02:00
Johannes Schönberger 53b7e6e418 Add test cases for line model 2013-05-02 18:30:07 +02:00