brainspace.mesh.mesh_elements.get_cell2point_connectivity¶
-
brainspace.mesh.mesh_elements.
get_cell2point_connectivity
(surf, mask=None, dtype=<class 'numpy.uint8'>)[source]¶ Get cell to point connectivity.
Parameters: - surf (vtkDataSet or BSDataSet) – Input surface.
- mask (1D ndarray, optional) – Binary mask. If specified, only get points within the mask. Default is None.
- dtype (dtype, optional) – Data type. Default is uint8.
Returns: output (sparse matrix, shape (n_cells, n_points)) – The connectivity matrix. The (i,j) entry is 1 if the i-th cell uses the j-th point.
Notes
This function returns the transpose of
get_point2cell_connectivity
.