06/25/2018 at 9:43 PM
#4986
Keymaster
Hi Monique,
I think what ningfei said may have been helpful but wasn’t exactly what you were looking for.
You can just use this snippet:
uipatdir={'/path/to/my/patientfolder1','/path/to/my/patientfolder2','/path/to/my/patientfolder3'};
cfg.xmm=-4; % x-coordinate
cfg.ymm=-5; % y-coordinate
cfg.zmm=10; % z-coordinate
cfg.acmcpc=2; % relative to midcommissural point, AC would be 1, PC would be 3.
fid=ea_mni2acpc(cfg,uipatdir);
The first line would point to at least one patient normalized with Lead-DBS. Please do read the Horn 2017 NI paper to see why it may make a lot of sense to use a whole cohort to do this conversion. Instead, if you’re interested in the coordinate in ACPC in exactly one specific patient, then just using one patient is ideal.
The transformed coordinate will be fid.WarpedPointACPC;
AC, PC and MSP in native space will also be defined.
Then ea_acpc2mni would do the reverse.
Hope this helps!
Best, Andy