eeglabio.utils.cart_to_eeglab_sph#
- eeglabio.utils.cart_to_eeglab_sph(cart)#
Convert Cartesian coordinates to EEGLAB spherical coordinates. Implementation is based on EEGLAB’s convertlocs and Matlab’s cart2sph
- Parameters:
- cart
ndarray
,shape
(n_points
, 3) Array containing points in Cartesian coordinates (x, y, z)
- cart
- Returns:
- sph_pts
ndarray
,shape
(n_points
, 7) Array containing points in spherical coordinates (sph_theta, sph_phi, sph_radius, theta, radius, sph_theta_besa, sph_phi_besa)
- sph_pts
See also