Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import splitImageIdsBy4DTags from './splitImageIdsBy4DTags'; /** * Get some info about 4D image sets. Time points (groups of imageIds) are * returned when the imageIds represents a 4D volume. * @param imageIds - Array of Cornerstone Image Object's imageIds * @returns 4D series infos */ function getDynamicVolumeInfo(imageIds) { const { imageIdsGroups: timePoints, splittingTag } = splitImageIdsBy4DTags(imageIds); const isDynamicVolume = timePoints.length > 1; return { isDynamicVolume, timePoints, splittingTag }; } export default getDynamicVolumeInfo; |