Closed christian-oreilly closed 6 months ago
@hanayik Do you (or whoever you think is best placed to test this) could check if that shows fine with NiiVue, so that we know if the issue is on ipyniivue's side?
@christian-oreilly add_volume adds a voxel-based image (e.g. NIfTI, DICOM, NRRD). An STC file contains the per-vertex values for a mesh. So you would want to add your desired triangular mesh (e.g. left-hemisphere mesh) and then load your STC file as a layer attached to the mesh. Note that you can have multiple meshes open at once (e.g. left and right hemisphere simultaneously) each with its own layer(s). The mesh 4D live demo illustrates the process.
Thanks @neurolabusc for this info. Right, that makes sense. I had in mind that these files embedded the meshes as other MNE structures do (like the source model and the forward model if I am not mistaken)... but you are right, they don't. I'll cycle back to this when I have a moment to try to finish the demo with ipyniivue given this info.
The following example:
fails to display the sources stored in the .stc format. According to https://github.com/niivue/niivue, NiiVue supports this format. Here is the results from this code when ran on Google Colab: