This function applies principal component analysis (PCA) to each matrix in a list of voxel matrices and returns a list of projection matrices (principal axes).

antsr_pca_features(voxmats, k)

Arguments

voxmats

A list of numeric matrices. Each matrix should have dimensions (subjects × voxels).

k

Integer. Number of principal components to retain.

Value

A named list of projection matrices (voxels × k), one per input matrix.