Coordinate system

I wanted to understand when a Brainvision file (.eeg, .vmrk, .vhdr files) is imported into Brainstorm how the channels are converted. What formula is used. I read the Coordinate systems tutorial but I didn't understand much.

Hi @dienece,

The Coordinates in a BrainVision BrainAmp are spherical coordinates in degrees, they are first converted to spherical coordinates in radians and then to Cartesian coordinates. This is done here:

https://github.com/brainstorm-tools/brainstorm3/blob/d6f680f430a5e37974e4106bdb74290cf1537907/toolbox/io/in_fopen_brainamp.m#L112

For co-registration of channel positions and subject's anatomy, see this

Best,
Raymundo

thanks a lot Raymundo