vreg.Volume3D.center_of_mass#
- Volume3D.center_of_mass(coords='fixed')[source]#
Center of mass.
- Parameters:
coords (str or array, optional) – Reference frame for the coordinates of the returned vector, as a 4x4 affine array. String options are shorthand notations: ‘fixed’ (patient reference), and ‘volume’ (volume reference frame). Defaults to ‘fixed’.
- Returns:
3-element vector pointing to the volume’s center of mass.
- Return type: