Skip to main content

Function: thresholdSegmentationByRange()

thresholdSegmentationByRange(segmentationVolume, segmentationIndex, thresholdVolumeInformation, overlapType): Types.IImageVolume

It thresholds a segmentation volume based on a set of threshold values with respect to a list of volumes and respective threshold ranges.

Parameters

segmentationVolume: ImageVolume

the segmentation volume to be modified

segmentationIndex: number

the index of the segmentation to modify

thresholdVolumeInformation: ThresholdInformation[]

array of objects containing volume data and a range (lower and upper values) to threshold

overlapType: number

indicates if the user requires all voxels pass (overlapType = 1) or any voxel pass (overlapType = 0)

Returns

Types.IImageVolume

Defined in

tools/src/utilities/segmentation/thresholdSegmentationByRange.ts:17