


lyngby_spm_xyz2ind - Convert SPM XYZ structure to voxel indices
function [Indices, dim] = lyngby_spm_xyz2ind(XYZ, ...
dim, origin)
Input: Vmask a voxel mask (a sparse matrix)
origin (Optional)
dim (Optional)
Output: Indices Indices for all voxels that will be in the
masked voloume
dim
See also: lyngby_index2vmask, lyngby_vmask2index