neuralib.atlas.ccf.matrix.CCFTransMatrix

class neuralib.atlas.ccf.matrix.CCFTransMatrix[source]

Bases: object

matrix for image transformation

__init__(slice_id, matrix, plane_type, *, resolution=10)

Method generated by attrs for class CCFTransMatrix.

Parameters:
  • slice_id (str)

  • matrix (MatMatrix)

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

  • resolution (int)

Return type:

None

Methods

__init__(slice_id, matrix, plane_type, *[, ...])

Method generated by attrs for class CCFTransMatrix.

get_slice_plane()

get slice plane

matrix_info([to_polars])

transform matrix information dict

Attributes

slice_id

slice name id

matrix

MatMatrix

plane_type

PLANE_TYPE

resolution

resolution in um

delta_xy

map delta value to xy slice view

slice_index

slice index

slice_id: str

slice name id

matrix: MatMatrix

MatMatrix

plane_type: Literal['coronal', 'sagittal', 'transverse']

PLANE_TYPE

__init__(slice_id, matrix, plane_type, *, resolution=10)

Method generated by attrs for class CCFTransMatrix.

Parameters:
  • slice_id (str)

  • matrix (MatMatrix)

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

  • resolution (int)

Return type:

None

resolution: int

resolution in um

property slice_index: int

slice index

property delta_xy: tuple[int, int]

map delta value to xy slice view

get_slice_plane()[source]

get slice plane

Return type:

SlicePlane

matrix_info(to_polars=True)[source]

transform matrix information dict

Parameters:

to_polars (bool) – to polars dataframe

Returns:

Return type:

dict[str, Any] | DataFrame