wiheto / netplotbrain

A package to create simple 3D network visualizations on a brain.
Apache License 2.0
69 stars 7 forks source link

Visualization of the ROIs in a probabilistic atlas #47

Open oesteban opened 2 years ago

oesteban commented 2 years ago

Probabilistic atlases (e.g., difumo) are not piecewise smooth.

It would be interesting to weigh the colors of the ROIs and modify the alpha channel to make them transparent as you move away from the ROI and enter a different one.

wiheto commented 2 years ago

Good idea. Should be easy to add.

Are "dseg" and "probseg" used for all atlases on TemplateFlow? That would be an easy way to control the behaviour.

oesteban commented 2 years ago

Yes, dseg indicates piecewise smooth (discrete) segmentations and probseg indicates probabilistic segmentation. Both are used accordingly.

In nilearn they have this: https://nilearn.github.io/stable/auto_examples/01_plotting/plot_prob_atlas.html#sphx-glr-auto-examples-01-plotting-plot-prob-atlas-py but none of the examples seem to make a good job at plotting probabilities.

cc/ @poldrack might be interested in learning about this particular issue and netplotbrain in general.

(EDITED because I was responding in two tabs at the same time and both messages needed a merge).

poldrack commented 2 years ago

indeed! we are moving towards using difumo for many projects so having a way to visualize this would be really helpful

wiheto commented 2 years ago

Alright. Will try and add asap then!