mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-28 11:25:42 +08:00
cleaned tests and documentation, added deprecation note in doc for LineModel.
This commit is contained in:
@@ -44,6 +44,8 @@ class LineModel(BaseModel):
|
||||
|
||||
A minimum number of 2 points is required to solve for the parameters.
|
||||
|
||||
**Deprecated, use ``LineModelND`` instead.**
|
||||
|
||||
Attributes
|
||||
----------
|
||||
params : tuple
|
||||
@@ -243,9 +245,7 @@ class LineModelND(BaseModel):
|
||||
axis : int
|
||||
axis orthogonal to the hyperplane intersecting the line.
|
||||
params : (2, ) array, optional
|
||||
Optional custom parameter set in the form (`dist`, `theta`).
|
||||
new_params : (2, ) array, optional
|
||||
Optional custom parameter set in the form (`X0`, `direction`).
|
||||
Optional custom parameter set in the form (`origin`, `direction`).
|
||||
|
||||
Returns
|
||||
-------
|
||||
|
||||
@@ -52,8 +52,6 @@ def test_line_model_residuals():
|
||||
def test_line_model_under_determined():
|
||||
data = np.empty((1, 2))
|
||||
assert_raises(ValueError, LineModel().estimate, data)
|
||||
data = np.empty((1, 3))
|
||||
assert_raises(ValueError, LineModel().estimate, data)
|
||||
|
||||
|
||||
def test_line_modelND_invalid_input():
|
||||
|
||||
Reference in New Issue
Block a user