simnibs.mni2subject_coords¶
- simnibs.mni2subject_coords(coordinates, m2m_folder, transformation_type='nonl')¶
Warps a set of coordinates in MNI space to subject space
- Parameters:
coordinates (list or numpy array in Nx3 format) – Coordinates to be transformd
m2m_folder (str) – Path to the m2m_{subject_id} folder, generated during the segmantation
transformation_type ({'nonl', '6dof', '12dof'}) – Type of tranformation, non-linear, 6 or 12 degrees of freedom
- Returns:
transformed_coords – Array with transformed coordinates
- Return type:
Nx3 numpy array