Finding SCS translation and rotation matrix (MRI (voxel) to SCS)

Hello,

I was wondering how you find the SCS translation and rotation matrix (SCS.R and SCS.T). Could you please explain (or put the link to the code)?

Thanks,

Mohammadreza

The SCS transformation is computed in function cs_compute.m:

Then saved in the reference MRI:
https://neuroimage.usc.edu/brainstorm/Tutorials/ExploreAnatomy#On_the_hard_drive:_MRI