skimage 0.17.2

AttributesBackRef

Attributes

params : tuple

Circle model parameters in the following order :None:None:`xc`, :None:None:`yc`, r.

The functional model of the circle is:

r**2 = (x - xc)**2 + (y - yc)**2

This estimator minimizes the squared distances from all points to the circle:

min{ sum((r - sqrt((x_i - xc)**2 + (y_i - yc)**2))**2) }

A minimum number of 3 points is required to solve for the parameters.

Total least squares estimator for 2D circles.

Examples

This example is valid syntax, but we were not able to check execution
>>> t = np.linspace(0, 2 * np.pi, 25)
... xy = CircleModel().predict_xy(t, params=(2, 3, 4))
... model = CircleModel()
... model.estimate(xy) True
This example is valid syntax, but we were not able to check execution
>>> tuple(np.round(model.params, 5))
(2.0, 3.0, 4.0)
This example is valid syntax, but we were not able to check execution
>>> res = model.residuals(xy)
... np.abs(np.round(res, 9)) array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

skimage.measure.fit.CircleModel

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /skimage/measure/fit.py#220
type: <class 'type'>
Commit: