brainglobe / brainrender

a python based software for visualization of neuroanatomical and morphological data.
https://brainglobe.info/documentation/brainrender/index.html
BSD 3-Clause "New" or "Revised" License
547 stars 77 forks source link

Brainrender example showing output of `brainglobe-segmentation` data #280

Closed alessandrofelder closed 5 months ago

alessandrofelder commented 11 months ago

The text below was removed from the brainglobe-segmentation tutorials, but may be handy as an example for brainrender or brainrender-napari one day:

if you loaded your data in atlas space, you can also export the track to brainrender. The file will be saved as e.g. track_0.npy. Using the Python API, you can visualise the track as follows:

from brainrender import Scene
from brainrender.actors import Points
from myterial import blue

file = ("/path/to/track_0.npy")

scene = Scene()
scene.add(Points(file, colors=blue, radius=100, alpha=0.7))
scene.render()
adamltyson commented 5 months ago

Closing, and addressed in #313