skimage 0.17.2

ParametersReturnsBackRef
inertia_tensor(image, mu=None)

Parameters

image : array

The input image.

mu : array, optional

The pre-computed central moments of image . The inertia tensor computation requires the central moments of the image. If an application requires both the central moments and the inertia tensor (for example, skimage.measure.regionprops ), then it is more efficient to pre-compute them and pass them to the inertia tensor call.

Returns

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

The inertia tensor of the input image. $T_{i, j}$ contains the covariance of image intensity along axes $i$ and $j$ .

Compute the inertia tensor of the input image.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

skimage.measure._moments.inertia_tensor_eigvals

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#379
type: <class 'function'>
Commit: