{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / transform / _geometric / PiecewiseAffineTransform / from_estimate

classmethod

skimage.transform._geometric:PiecewiseAffineTransform.from_estimate

source: /dev/scikit-image/src/skimage/transform/_geometric.py :1640

Summary

Estimate the transformation from a set of corresponding points.

Extended Summary

Number of source and destination coordinates must match.

Parameters

src : (N, D) array_like

Source coordinates.

dst : (N, D) array_like

Destination coordinates.

Returns

tf : Self or :class:`~.FailedEstimation`

An instance of the transformation 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.

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

Aliases

  • skimage.transform.PiecewiseAffineTransform.from_estimate