{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / measure / fit / EllipseModel / from_estimate

classmethod

skimage.measure.fit:EllipseModel.from_estimate

source: /dev/scikit-image/src/skimage/measure/fit.py :828

Summary

Estimate ellipse model from data using total least squares.

Parameters

data : ndarray of shape (N, 2)

N points with (x, y) coordinates, respectively.

Returns

model : Self or `~.FailedEstimation`

An instance of the ellipse model if the estimation succeeded. Otherwise, we return a special FailedEstimation object to signal a failed estimation. Testing the truth value of the failed estimation object will return False. E.g.

model = EllipseModel.from_estimate(...)
if not model:
    raise RuntimeError(f"Failed estimation: {model}")

Aliases

  • skimage.measure.EllipseModel.from_estimate