Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

[Bug] Multiframe DICOM negative Spacing Between Slices not handled

Open salimkanoun opened this issue 5 months ago • 6 comments

Describe the Bug

In multiframe DICOM, some of theme has a negative 0018,0088 Spacing Between Slices exemple 0018,0088 Spacing Between Slices: -4.41806

According to the dicom standard in the case of NM images "The normal is determined by the cross product of the direction cosines of the first row and first column of the first frame, such that a positive spacing indicates slices are stacked behind the first slice and a negative spacing indicates slices are stacked in front of the first slice"

In the current version, Cornerstone only take in consideration 0018,0050 Slice Thickness resulting that DICOM with negative spacing between slices are upside down.

Here are two samples with this issue: Bone scitigraphy https://nc-6563074006263353659.nextcloud-ionos.com/index.php/s/yYjXZxapM77WMYF Datscan https://nc-6563074006263353659.nextcloud-ionos.com/index.php/s/Nt8qkxEw2NMNM6A

Steps to Reproduce

Open OHIF with config strictZSpacingForVolumeViewport: false Open the Datscan image with basic mode, go to MPR The brain is upside down (see vertex being down)

image

Open the bone scintigraphie in basic and go to MPR, see the bladder uptake in upper part of the viewport

image

Modify the TMTV mode to try to fuse the NM (here labeled OT has reconstruction in NM is not native) with CT

  • An error occur
  • We can see the mismatch of the two series

image

The current behavior

upside down image

The expected behavior

image stack should be done in reverse order if Spacing Between Slices is negative

OS

Linux

Node version

20+

Browser

Chrome 100+

salimkanoun avatar Aug 29 '24 20:08 salimkanoun