mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-01 01:44:02 +08:00
Add test case for underdetermined LineModel estimation
This commit is contained in:
@@ -36,6 +36,11 @@ def test_line_model_estimate():
|
||||
assert_almost_equal(model0._params, model_est._params, 1)
|
||||
|
||||
|
||||
def test_line_model_under_determined():
|
||||
data = np.empty((1, 2))
|
||||
assert_raises(ValueError, LineModel().estimate, data)
|
||||
|
||||
|
||||
def test_circle_model_invalid_input():
|
||||
assert_raises(ValueError, CircleModel().estimate, np.empty((5, 3)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user