Skip to main content

Function: sortImageIdsAndGetSpacing()

sortImageIdsAndGetSpacing(imageIds, scanAxisNormal?): SortedImageIdsItem

Given an array of imageIds, sort them based on their imagePositionPatient, and also returns the spacing between images and the origin of the reference image

Parameters

imageIds: string[]

array of imageIds

scanAxisNormal?: vec3

[x, y, z] array or gl-matrix vec3

Returns

SortedImageIdsItem

The sortedImageIds, zSpacing, and origin of the first image in the series.

Defined in

packages/core/src/utilities/sortImageIdsAndGetSpacing.ts:20