Skip to content

Class: ConnectedComponents

Defined in: src/roi/ConnectedComponents.ts:59

Constructors

Constructor

ts
new ConnectedComponents(): ConnectedComponents;

Returns

ConnectedComponents

Methods

performConnectedComponents()

ts
static performConnectedComponents(
   valueVolume, 
   maskVolume, 
   threshold, 
   connectivity): ConnectedComponentsResult;

Defined in: src/roi/ConnectedComponents.ts:68

Performs connected components analysis on a 3D volume.

Parameters

valueVolume

NeuroVol

The NeuroVol containing voxel values.

maskVolume

NeuroVol

The NeuroVol containing binary mask (0 or 1).

threshold

number

The threshold value for voxel inclusion.

connectivity

Connectivity

The connectivity scheme (6, 18, or 26).

Returns

ConnectedComponentsResult

An object containing the cluster table, indexVolume, and sizeVolume.

Released under the MIT License.