pycortex
pycortex copied to clipboard
doc (gallery): datasets
- [x] volume.py (include plot, vmin, vmax, nans)
- [x] volume2D.py (include plot, vmins, vmaxs, colormaps)
- [x] volumeRGB.py (include plot, alpha)
- [x] vertex.py
- [x] vertex2D.py
- [x] vertexRGB.py
- [ ] volume_from_masked_data.py
- [ ] volume_from_custom_mask.py
- [ ] volume_movie.py
- [x] volume_to_vertex.py (include mapping @ different depths?)
- [x] dataset_arithmetic.py
- [ ] remask_volume.py
To demonstrate how a random array can be converted to a Volume: Option 1:
data = np.random.rand(*cortex.db.get_xfm('S1', 'fullhead').shape)
volume = cortex.Volume(data=data, subject='S1', xfmname='fullhead')
Option 2:
volume = cortex.Volume.random(subject=‘S1’, xfmname=‘fullhead’)