stc morphing question {Disarmed}

External Email - Use Caution

Are the morphing matrices computed using mne.compute_morph_matrix
invertable?

if I call

morph_mat = mne.compute_morph_matrix
<https://martinos.org/mne/stable/generated/mne.compute_morph_matrix.html#mne.compute_morph_matrix>(subject_from,
subject_to,
                                     stc_from.vertices, vertices_to,
                                     subjects_dir=subjects_dir)

Is there a way to invert morph_mat to map from 'subject_to' to 'subject_from'
or should i just call compute_morph_matrix again, something like...

morph_mat_inv = mne.compute_morph_matrix
<https://martinos.org/mne/stable/generated/mne.compute_morph_matrix.html#mne.compute_morph_matrix>(subject_to,
subject_from,
                                     vertices_to, stc_from.vertices,
                                     subjects_dir=subjects_dir)

switching the to/from subject and vertices.

Is this the best way to map back and forth between subjects?

Thanks!

Luke

p.s. The use case is to map a group of subjects to a template
(fsaverage). Do stats, make labels
etc., in the template space and then to map these labels back into each subject.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20181031/a1e068a7/attachment-0001.html

External Email - Use Caution

hi,

yes switching the to/from subject and vertices is what I would do.

Alex