mango.image.moment_of_inertia

mango.image.moment_of_inertia((object)input[, (object)c=None]) → object :

Calculates the centre of mass and the principal moment of inertia tensor (about centre of mass) of the elements of the mango.Dds array.

Parameters:
  • input (mango.Dds) – Data from which centre-of-mass and moment-of-inertia are calculated.
  • c (three sequence) – The centre-index ((cz,cy,cx)) about which the moment of inertia is calculated. If None, the centre of mass is calculated and used as the centre-index.
Return type:

three element tuple

Returns:

A tuple (pmoi, pmoi_axes, c), where pmoi is a three element array indicating the ellipsoid axis diameters, pmoi_axes is a (3,3) shaped rotation matrix whose i th column indicates the direction of the pmoi[i] ellipsoid axis, and c is the centre-index argument.

C++ signature :
boost::python::api::object moment_of_inertia(boost::python::api::object [,boost::python::api::object=None])

Previous topic

mango.image.centre_of_mass

Next topic

mango.image.intensity_spherical_histogram

This Page