{ } Raw JSON

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

classmethod

skimage.transform._geometric:EuclideanTransform.from_estimate

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

Summary

Estimate the transformation from a set of corresponding points.

Extended Summary

You can determine the over-, well- and under-determined parameters with the total least-squares method.

Number of source and destination coordinates must match.

Parameters

src : array_like of shape (N, 2)

Source coordinates.

dst : array_like of shape (N, 2)

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 = EuclideanTransform.from_estimate(...)
if not tf:
    raise RuntimeError(f"Failed estimation: {tf}")

Aliases

  • skimage.transform.EuclideanTransform.from_estimate