skimage 0.17.2

NotesParametersReturns
inertia_tensor_eigvals(image, mu=None, T=None)

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.

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.

Parameters

image : array

The input image.

mu : array, optional

The pre-computed central moments of image .

T : array, shape ``(image.ndim, image.ndim)``

The pre-computed inertia tensor. If T is given, mu and image are ignored.

Returns

eigvals : list of float, length ``image.ndim``

The eigenvalues of the inertia tensor of image , in descending order.

Compute the eigenvalues of the inertia tensor of the image.

Examples

See :

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/_moments.py#431
type: <class 'function'>
Commit: