neuralib.dashboard.view_brain.AtlasBrainView

class neuralib.dashboard.view_brain.AtlasBrainView[source]

Bases: AbstractBrainView

__init__(source, check_latest=False, plane='coronal')[source]
Parameters:
  • source (str)

  • plane (Literal['coronal', 'sagittal', 'transverse'])

Methods

__init__(source[, check_latest, plane])

brain_slice(offset)

gen_offset_matrix(h, v)

list_renders([pattern, recursive])

list all renders for those name contain pattern.

plot(fig[, palette])

plot data in figure.

set_visible(visible[, pattern])

Set the visible state of renders for those name contain pattern.

update([x, y])

update the plot

Attributes

PLANE

brain_image

height

height_n

n_ap

n_dv

n_frame

n_ml

offset

offset_h

offset_matrix

offset_w

plane

width

width_n

data_brain_slice

render_brain_slice

PLANE

alias of Literal[‘coronal’, ‘sagittal’, ‘transverse’]

__init__(source, check_latest=False, plane='coronal')[source]
Parameters:
  • source (str)

  • plane (Literal['coronal', 'sagittal', 'transverse'])

resolution: int
grid_x: ndarray
grid_y: ndarray
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