Collecting use cases #5
Replies: 3 comments
-
By @ coalsont September 3, 2021, 9:49pm Some perspective from HCP land, if it is useful: The view/plot case has different recommended viewing surfaces, depending
Distances aren't too difficult to derive from the coordinates and Resampling to another mesh uses spherical surfaces (one of which is Our method of mapping volume data to the surface (we don't call this |
Beta Was this translation helpful? Give feedback.
-
By @ htwangtw September 10, 2021, 3:53pm What I have encountered was mostly I/O related. I don't really work with Here are some stuff that's currently doable but a bit tedious in
Here's a snippet I wrote a while ago: source
Things are not doable in the current scope of nilearn:
The bottle neck for most of the mentioned above is, as Chris already |
Beta Was this translation helpful? Give feedback.
-
By @ larsoner October 7, 2021, 5:31pm I think the use cases we have in MNE-Python (and PySurfer) are all
More generally, our use cases involve time-varying source data We have code for all of the above, plus plotting |
Beta Was this translation helpful? Give feedback.
-
By effigies September 3, 2021, 8:19pm
Please comment here with a specific use case that you have.
Got a question about what the target of the surface API is, and it
probably makes sense to start this thread with my response:
The problem is that you have a number of things you want to do with data
sampled to a surface:
Additionally, I may want to do things to the mesh itself, such as
decimating it to a desired number of vertices.
With a volumetric image, it is sufficient to have a data array and an
affine matrix to perform all of these. As you perform operations, it's
easy to associate the affine with the new in-memory images, update the
affine, and write out a final image that may have the same or a
different affine to the original.
To do the same with a surface, you may need to load several different
files, and it may not be clear when you're going to need each. For
example, suppose I do some basic arithmetic and end up with a new data
array that does not correspond to a file on disk. If I want to plot it,
I have to go back to the original data and find the appropriate geometry
files. So I need a way of associating the geometric metadata with the
surface-sampled data, ideally without wasting a huge amount of memory.
And this API should not be so closely aligned to one on-disk data model
(such as the FreeSurfer subject directory) that it becomes difficult to
adapt it to another one.
Beta Was this translation helpful? Give feedback.
All reactions