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.
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.
The input image.
The pre-computed central moments of image
.
The pre-computed inertia tensor. If T
is given, mu
and image
are ignored.
The eigenvalues of the inertia tensor of image
, in descending order.
Compute the eigenvalues of the inertia tensor of the image.
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