Skip to content

Function: roiFromMask()

ts
function roiFromMask(mask, fill?): ROIVol;

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

Creates an ROI from a logical/binary volume (mask).

Parameters

mask

LogicalNeuroVol

A LogicalNeuroVol representing the mask

fill?

number = 1

Optional value to assign to the data slot. Defaults to 1

Returns

ROIVol

An ROIVol containing all true voxels from the mask

Released under the MIT License.