{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / measure / _moments / inertia_tensor

function

skimage.measure._moments:inertia_tensor

source: /dev/scikit-image/src/skimage/measure/_moments.py :417

Signature

def   inertia_tensor ( image mu = None * spacing = None )

Summary

Compute the inertia tensor of the input image.

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.

spacing : tuple of float, shape (ndim,)

The pixel spacing along each axis of the image.

Returns

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

The inertia tensor of the input image. contains the covariance of image intensity along axes and .

Aliases

  • skimage.measure.inertia_tensor