Skip to content

Function: roiFromIndices() ​

ts
function roiFromIndices(
   space, 
   indices, 
   fill?): ROIVol;

Defined in: src/roi/ROI_factories.ts:296

Creates an ROI from a set of linear indices.

Parameters ​

space ​

NeuroSpace

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 ​

ROIVol

An ROIVol containing the specified voxels

Released under the MIT License.