OHIF / Viewers

OHIF zero-footprint DICOM viewer and oncology specific Lesion Tracker, plus shared extension packages
https://docs.ohif.org/
MIT License
3.37k stars 3.39k forks source link

[Bug] There is incomplete display of series images in latest version #4351

Open IT-Highmore opened 2 months ago

IT-Highmore commented 2 months ago

Describe the Bug

Here is the resource: 1.2.194.0.108707908.20231128085204.1937.11.2265108.zip

When I upload a set of dicom images, I find that one series images is not fully displayed. It has 36 images, but only displayed 18 images. Viewer3

So I checked it in other software, all are displayed normally even in Viewer2. 1 2 4

I found the numberOfSlices in https://github.com/cornerstonejs/cornerstone3D/blob/e14af95b33e92828f3e0c8c21f0dc9319647abda/packages/core/src/utilities/getImageSliceDataForVolumeViewport.ts#L42 ,

image

How to deal with this situation when the calculated results do not match the actual?

Steps to Reproduce

  1. Download the resource, and Upload to viewer.ohif.org/local
  2. select basic viewer, checkd DWI_og images

The current behavior

only displayed 18 images

The expected behavior

displayed 36 images

OS

Windows 11

Node version

18.17.0

Browser

Chrome 127.0.6533.120

sedghi commented 1 week ago

Can you check the latest OHIF viewer, which now includes Cornerstone 3D 2.0?

Here are the migration guides:

Try OHIF locally: https://viewer-dev.ohif.org/localbasic
Try Cornerstone3D 2.0 locally: https://www.cornerstonejs.org/live-examples/local.html

https://docs.ohif.org/migration-guide/3p8-to-3p9/

IT-Highmore commented 2 days ago

image image Maybe the problem still exists

lscoder commented 2 days ago

@sedghi It seems to be related to #4232. getDynamicVolumeInfo from '@cornerstonejs/streaming-image-volume-loader' should be called only when 4D mode is loaded. Currently it may be getting called even in basic mode. If that is still an issue it should be changed to something like this #4294