You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using surface source spaces with SourceSpaces.export_volume writes out all possible surface vertices #7886
Not necessarily a bug, but unexpected behaviour (at least for me):
Writing out surface source spaces from a mixed source space using export_volume always writes out the full list of vertices in the surface used to create the source space, not the vertices that are "inuse", i.e. sources. Is this intentional? If yes, would it be sensible to include an option to write only source vertices in use?
When exporting surface source spaces along with volumetric ones I would expect it to export only the surface vertices that are in use, and label voxels within the volume that do not coincide with the location of a source vertex that is in use as background/ 0
Actual results
When exporting surface sources along with volume sources the full vertex list gets written, regardless of how many vertices are in use
Hmm, it might actually be because the vertices are quite difficult to see if you only include the ones in the source space. Also it creates an inconsistency with mri_resolution=True because the volume vertices will occupy the entire volume. But I think that's probably actually a bug, and it should only "color in" the voxels at the locations of the vertices, not the entire space that that voxel represents in the low-resolution / higher-spacing/zooms MRI.
Basically the question is, in mri_resolution=True, which voxels should be colored in? I would say "only those closest to where the vertex is in 3-space", but currently the answer is "all voxels in the regions represented by the low-resolution MRI and decimated surface meshes".
Activity
agramfort commentedon Jun 10, 2020
larsoner commentedon Jun 10, 2020
Just looks to me like mis-translation of code 6 years ago, and these functions are rarely used so it has been missed...
larsoner commentedon Jun 10, 2020
Hmm, it might actually be because the vertices are quite difficult to see if you only include the ones in the source space. Also it creates an inconsistency with
mri_resolution=Truebecause the volume vertices will occupy the entire volume. But I think that's probably actually a bug, and it should only "color in" the voxels at the locations of the vertices, not the entire space that that voxel represents in the low-resolution / higher-spacing/zooms MRI.larsoner commentedon Jun 10, 2020
Basically the question is, in
mri_resolution=True, which voxels should be colored in? I would say "only those closest to where the vertex is in 3-space", but currently the answer is "all voxels in the regions represented by the low-resolution MRI and decimated surface meshes".larsoner commentedon Jun 10, 2020
(I'm going to add a
mri_resolution="sparse"option to allow either behavior)