Deep learning for NeuroImaging in Python.
Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the gallery for the big picture.
- surfify.utils.coord.cart2sph(x, y, z)[source]ΒΆ
Cartesian to spherical coordinate transform.
- Parameters:
x : float or array_like.
x-component of Cartesian coordinates
y : float or array_like.
y-component of Cartesian coordinates
z : float or array_like.
z-component of Cartesian coordinates
- Returns:
alpha : float or numpy.ndarray
Azimuth angle in radiants. The value of the angle is in the range [-pi pi].
beta : float or numpy.ndarray
Elevation angle in radiants. The value of the angle is in the range [-pi/2, pi/2].
r : float or numpy.ndarray
Radius.
Follow us