Skip to content

Function: localMaxima()

ts
function localMaxima(
   valueVolume, 
   indexVolume, 
   minDistance?): object[];

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

Find local maxima (peaks) in each cluster.

A voxel is a local maximum if its value is strictly greater than all of its 26-connected neighbours that belong to the same cluster.

Parameters

valueVolume

NeuroVol

The value volume

indexVolume

NeuroVol

The cluster index volume from performConnectedComponents

minDistance?

number

Optional minimum grid distance between reported peaks within the same cluster (Euclidean)

Returns

object[]

Array of peak descriptors

Released under the MIT License.