Skip to main content

Function: splitImageIdsBy4DTags()

splitImageIdsBy4DTags(imageIds): object

Split the imageIds array by 4D tags into groups. Each group must have the same number of imageIds or the same imageIds array passed in is returned.

For multiframe images (NumberOfFrames > 1), this function checks for TimeSlotVector (0054,0070) which is common in NM (Nuclear Medicine) gated SPECT/PET images. The TimeSlotVector indicates which time slot each frame belongs to, and SliceVector (0054,0080) indicates the slice position.

Parameters

imageIds: string[]

array of imageIds

Returns

object

imageIds grouped by 4D tags

imageIdGroups

imageIdGroups: string[][]

splittingTag

splittingTag: string | null

Defined in

packages/core/src/utilities/splitImageIdsBy4DTags.ts:455