bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / measure / _moments / inertia_tensor_eigvals
function
skimage.measure._moments:inertia_tensor_eigvals
source: /dev/scikit-image/src/skimage/measure/_moments.py :473
Signature
def inertia_tensor_eigvals ( image , mu = None , T = None , * , spacing = None ) Summary
Compute the eigenvalues of the inertia tensor of the image.
Extended Summary
The inertia tensor measures covariance of the image intensity along the image axes. (See inertia_tensor.) The relative magnitude of the eigenvalues of the tensor is thus a measure of the elongation of a (bright) object in the image.
Parameters
image: arrayThe input image.
mu: array, optionalThe pre-computed central moments of
image.T: array, shape ``(image.ndim, image.ndim)``The pre-computed inertia tensor. If
Tis given,muandimageare ignored.spacing: tuple of float, shape (ndim,)The pixel spacing along each axis of the image.
Returns
eigvals: list of float, length ``image.ndim``The eigenvalues of the inertia tensor of
image, in descending order.
Notes
Computing the eigenvalues requires the inertia tensor of the input image. This is much faster if the central moments (mu) are provided, or, alternatively, one can provide the inertia tensor (T) directly.
Aliases
-
skimage.measure.inertia_tensor_eigvals