neuralib.dashboard.view_brain

class neuralib.dashboard.view_brain.AbstractBrainView[source]
render_brain_slice: GlyphRenderer
__init__()[source]
data_brain_slice: ColumnDataSource
property width: float | None
property height: float | None
plot(fig, palette='Greys256')[source]

plot data in figure.

Parameters:
  • figure – Figure.

  • kwargs – plotting parameters.

  • fig (figure)

abstract property brain_image: ndarray
update(x=0, y=0)[source]

update the plot

Parameters:
  • x (float)

  • y (float)

class neuralib.dashboard.view_brain.BrainView[source]
__init__()[source]
property brain_image: ndarray
class neuralib.dashboard.view_brain.TiffBrainView[source]
__init__(file)[source]
Parameters:

file (Path)

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

brain_slice(offset)[source]
Parameters:

offset (int | ndarray)

Return type:

ndarray

property brain_image: ndarray