stc_to_label src

How do I create what stc_to_label is expecting from src to have
connected=True when I'm loading in an stc file of a group average? I'm
trying to make some functional ROIs using group data that's been morphed to
fsaverage.

thanks,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20140226/67e13bc0/attachment.html

hi,

what you need to provide is the source space available in
fsaverage-ico-5-src.fif
assuming your morphed to ico5. Do something like this:

src = mne.read_source_spaces('fsaverage-ico-5-src.fif')
mne.stc_to_label(stc, src, smooth, connected)

HTH
A