cornerstone3D icon indicating copy to clipboard operation
cornerstone3D copied to clipboard

[Bug] how to load multi series 4D

Open l5769389 opened this issue 10 months ago • 0 comments

Describe the Bug

i want load a 4D scan series base on the demo: 4d demo . but i find the offical demo is one series like:

  const params = {
    StudyInstanceUID:
      '1.3.6.1.4.1.12842.1.1.14.3.20220915.105557.468.2963630849',
    SeriesInstanceUID:
      '1.3.6.1.4.1.12842.1.1.22.4.20220915.124758.560.4125514885',
    wadoRsRoot: 'https://d33do7qe4w26qo.cloudfront.net/dicomweb'
  }
await createImageIdsAndCacheMetaData(params)

my 4d Consists of multiple series,like:

  let imageIds: string[] = []
  const seriesIds = [
    // '1.2.392.200036.9107.307.31909.120240301.1102826.142329',
    // '1.2.2046.7929.09.1.20240301.103311.10920',
    // '1.2.2046.7929.09.1.20240301.103359.25746',
    // '1.2.2046.7929.09.1.20240301.103447.93095',
    // '1.2.2046.7929.09.1.20240301.103535.17768',
    // '1.2.2046.7929.09.1.20240301.103624.79468',
    // '1.2.2046.7929.09.1.20240301.103712.23891',
    // '1.2.2046.7929.09.1.20240301.103800.93438',
    '1.2.2046.7929.09.1.20240301.103848.91571',
    '1.2.2046.7929.09.1.20240301.103937.38151'
  ]
  for (let i = 0; i < seriesIds.length; i++) {
    const params = {
      StudyInstanceUID:
        '1.2.392.200036.9107.307.31909.120240301.1102826.123575',
      SeriesInstanceUID: seriesIds[i],
      wadoRsRoot: '/dicom-web'
    }
    let ids = await createImageIdsAndCacheMetaData(params)
    imageIds = [...imageIds, ...ids]
  }
  const volume = await volumeLoader.createAndCacheVolume(volumeId, {
    imageIds
  })

Can I separate and get different sequences of Imageids and then combine them like I did above? here is my orthanc 4d dicoms likes: 图片 what can i do to load the 4d image?

Steps to Reproduce

like above

The current behavior

like above

The expected behavior

like above

OS

like above

Node version

like above

Browser

like above

l5769389 avatar Apr 07 '24 12:04 l5769389