Function: roiFromIndices()
ts
function roiFromIndices(
space,
indices,
fill?): ROIVol;Defined in: src/roi/ROI_factories.ts:287
Creates an ROI from a set of linear indices.
Parameters
space
The NeuroSpace defining the coordinate system
indices
number[]
Array of linear indices
fill?
number = 1
Optional value to assign to the data slot. Defaults to 1
Returns
An ROIVol containing the specified voxels