File tree Expand file tree Collapse file tree 6 files changed +29
-29
lines changed Expand file tree Collapse file tree 6 files changed +29
-29
lines changed Original file line number Diff line number Diff line change 1
1
"""
2
- This example shows how to add a cylinder actor to a scene (e.g.
3
- to represent the location of an implanted optic canula)
2
+ This example shows how to add a cylinder actor to a scene (e.g.
3
+ to represent the location of an implanted optic canula)
4
4
"""
5
5
6
6
from brainrender import Scene , settings
Original file line number Diff line number Diff line change 1
1
"""
2
- This example shows how to add a label to a renderend actor
2
+ This example shows how to add a label to a renderend actor
3
3
"""
4
4
5
5
from pathlib import Path
Original file line number Diff line number Diff line change 1
1
"""
2
- This example shows how to use a PointsDensity
3
- actor to show the density of labelled cells
2
+ This example shows how to use a PointsDensity
3
+ actor to show the density of labelled cells
4
4
"""
5
5
6
6
import random
Original file line number Diff line number Diff line change 1
1
"""
2
- This example shows how to create a scene and render it with a custom camera.
3
- This is done by specifying a dictionary of camera parameters, to get the
4
- parameters you need for your camera:
5
- - render an interactive scene with any camera
6
- - move the camera to where you need it to be
7
- - press 'c'
8
- - this will print the current camera parameters to your console. Copy paste the
9
- parameters in your script
2
+ This example shows how to create a scene and render it with a custom camera.
3
+ This is done by specifying a dictionary of camera parameters, to get the
4
+ parameters you need for your camera:
5
+ - render an interactive scene with any camera
6
+ - move the camera to where you need it to be
7
+ - press 'c'
8
+ - this will print the current camera parameters to your console. Copy paste the
9
+ parameters in your script
10
10
"""
11
11
12
12
from pathlib import Path
Original file line number Diff line number Diff line change 1
1
"""
2
2
3
- This example shows how to render VOLUMETRIC data in brainrender.
4
- It uses data downloaded from: https://fishatlas.neuro.mpg.de/lines/
5
- showing gene expression for this transgenic line (brn3c:GPF): https://zfin.org/ZDB-ALT-050728-2
6
-
7
- These data are a 3D image with orientation different from the axes system used by
8
- brainrender, so it has to be loaded and transposed to the correct orientation
9
-
10
- This examples shows how to:
11
- - load volumetric data from a TIFF file
12
- - transpose the data with BrainGlobe Space to re-orient it
13
- - extract a mesh from the volumetric data using vedo
14
- - render the data
3
+ This example shows how to render VOLUMETRIC data in brainrender.
4
+ It uses data downloaded from: https://fishatlas.neuro.mpg.de/lines/
5
+ showing gene expression for this transgenic line (brn3c:GPF): https://zfin.org/ZDB-ALT-050728-2
6
+
7
+ These data are a 3D image with orientation different from the axes system used by
8
+ brainrender, so it has to be loaded and transposed to the correct orientation
9
+
10
+ This examples shows how to:
11
+ - load volumetric data from a TIFF file
12
+ - transpose the data with BrainGlobe Space to re-orient it
13
+ - extract a mesh from the volumetric data using vedo
14
+ - render the data
15
15
16
16
"""
17
17
Original file line number Diff line number Diff line change 1
1
"""
2
- This example shows how to render volumetric (i.e. organized in voxel)
3
- data in brainrender. The data used are is the localized expression of
4
- 'Gpr161' from the Allen Atlas database, downloaded with brainrender
5
- and saved to a numpy file
2
+ This example shows how to render volumetric (i.e. organized in voxel)
3
+ data in brainrender. The data used are is the localized expression of
4
+ 'Gpr161' from the Allen Atlas database, downloaded with brainrender
5
+ and saved to a numpy file
6
6
"""
7
7
8
8
import numpy as np
You can’t perform that action at this time.
0 commit comments