projection#
- class processing.projection.Projection(settings: NMSettings, grid_cortex: pd.DataFrame, grid_subcortex: pd.DataFrame, coords: dict, channels: pd.DataFrame, plot_projection: bool = False)[source]#
- calc_proj_matrix(max_dist: float, grid: ndarray, coord_array: ndarray) ndarray [source]#
Calculate projection matrix.
- calc_projection_matrix()[source]#
Calculates a projection matrix based on the used coordinate arrays
- Returns:
proj_matrix_cortex (np.array) – cortical projection_matrix in shape [grid contacts, channel contact] defaults to None
proj_matrix_subcortex (np.array) – subcortical projection_matrix in shape [grid contacts, channel contact] defaults to None
- get_projected_cortex_subcortex_data(dat_cortex: ndarray | None = None, dat_subcortex: ndarray | None = None) tuple[ndarray | None, ndarray | None] [source]#
Project cortical and subcortical data to predefined projection matrices
- Parameters:
dat_cortex (np.ndarray, optional) – cortical features, by default None
dat_subcortex (np.ndarray, optional) – subcortical features, by default None
- Returns:
proj_cortex (np.ndarray) – projected cortical features, by detault None
proj_subcortex (np.ndarray) – projected subcortical features, by detault None