neuralib.dashboard.view_brain
- class neuralib.dashboard.view_brain.AbstractBrainView[source]
- render_brain_slice: GlyphRenderer
- data_brain_slice: ColumnDataSource
- property width: float | None
- property height: float | None
- plot(fig, palette='Greys256')[source]
plot data in figure.
- Parameters:
fig (figure) – Figure.
kwargs – plotting parameters.
- abstract property brain_image: ndarray
- class neuralib.dashboard.view_brain.TiffBrainView[source]
-
- property offset: int
- property brain_image: ndarray
- class neuralib.dashboard.view_brain.AtlasBrainView[source]
- PLANE
alias of
Literal[‘coronal’, ‘sagittal’, ‘transverse’]
- __init__(source, check_latest=False, plane='coronal')[source]
- Parameters:
source (str)
plane (Literal['coronal', 'sagittal', 'transverse'])
- property n_ap: int
- property n_dv: int
- property n_ml: int
- property plane: Literal['coronal', 'sagittal', 'transverse']
- property n_frame: int
- property width_n: int
- property height_n: int
- property width: float
- property height: float
- property offset: int
- property offset_w: int
- property offset_h: int
- property offset_matrix: ndarray
- gen_offset_matrix(h, v)[source]
- Parameters:
h (int) – horizontal plane diff to the center. right side positive.
v (int) – vertical plane diff to the center. bottom side positive.
- Returns:
(H, W) array
- Return type:
ndarray
- property brain_image: ndarray