API Reference#
Generated from the source docstrings. The reference is intentionally terse — the why lives in Learn, the how in Tutorials and the Gallery.
Everything below is importable from the top-level spectralbrain namespace
(e.g. sb.compute_hks), with the full module paths shown for reference.
Subpackages#
SpectralBrain core geometric objects — base ops, meshes, point clouds. |
|
SpectralBrain I/O — loaders, exporters, preprocessing, parcellation, and GPU pipeline. |
|
SpectralBrain spectral analysis — descriptors, distances, wavelets. |
|
SpectralBrain statistics — EDA, frequentist, Bayesian, normative, surrogates, clustering. |
|
SpectralBrain visualization — 7 modules across 2D stats, 3D brain, geometry, and clustering. |
|
SpectralBrain utilities — atlases, datasets, and helpers. |
|
SpectralBrain compute backends — CPU (NumPy/SciPy) and GPU (CuPy/JAX). |
|
SpectralBrain runtime infrastructure. |
Most-used entry points#
Geometry
|
Triangle surface mesh for brain structures. |
|
Unstructured 3D point cloud for brain structures. |
|
Eigenvalues and eigenvectors of a Laplace–Beltrami operator. |
Spectral descriptors
|
ShapeDNA — the LBO eigenvalue fingerprint. |
|
Heat Kernel Signature — multi-scale per-vertex descriptor. |
|
Scale-Invariant HKS — removes scale dependence from HKS. |
|
Wave Kernel Signature — band-pass per-vertex descriptor. |
|
Global Point Signature — spectral embedding of the surface. |
|
Symmetric polynomial signatures — sign/ordering invariant. |
|
Biharmonic Kernel Signature — parameter-free per-vertex scalar. |
|
Improved BKS with curvature-aware neighbourhood aggregation. |
|
Spectral Graph Wavelet Transform via Chebyshev approximation. |
|
Spectral Graph Wavelet descriptor from precomputed eigenpairs. |
|
Compute all 8 spectral descriptors from one decomposition. |
|
Build an anisotropic Laplacian weighted by curvature direction. |
Correspondence & distances
|
Estimate a functional map C between two shapes. |
|
Compute a shape-difference operator from a functional map. |
|
Weighted Spectral Distance between two ShapeDNA vectors. |
|
Pairwise WESD matrix for a collection of ShapeDNA vectors. |
|
Simple distance between two ShapeDNA vectors. |
|
Biharmonic distance — parameter-free intrinsic metric. |
|
Commute-time distance from random walk theory. |
|
Diffusion distance — multi-scale intrinsic metric. |
|
Distance between two descriptor distributions. |
|
Build a ROI × ROI geometric connectome from parcel descriptors. |
I/O
|
Auto-detect format and load a neuroimaging / geometry file. |
|
Load a FreeSurfer surface file. |
|
Load a GIfTI surface file. |
|
Load a NIfTI or MGZ volume. |
|
Load and stack a cohort for group statistics. |
|
Parcellate a cortical hemisphere into atlas-defined regions. |
|
Split a surface into sub-meshes according to a parcellation. |