OHIF / Viewers

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

[Bug] v3: Segmentation flipped #3420

Closed fedorov closed 1 year ago

fedorov commented 1 year ago

Describe the Bug

v2: https://viewer.imaging.datacommons.cancer.gov/viewer/1.3.6.1.4.1.32722.99.99.99748660999232950779348544769645328227

image

v3: https://ohif-v3.web.app/viewer?StudyInstanceUIDs=1.3.6.1.4.1.32722.99.99.99748660999232950779348544769645328227

image

Steps to Reproduce

Click the links above.

The current behavior

Segmentation orientation appears to be incorrect (or at least inconsistent vs v2).

The expected behavior

v3 shows the same segmentation consistently with v2

OS

macOS

Node version

n/a

Browser

Chrome

fedorov commented 1 year ago

As a side note - how do I know in v3 UI which of the SEG series I currently see in the viewport?

jbocce commented 1 year ago

@fedorov, I tried to click the links above but was denied access.

fedorov commented 1 year ago

@jbocce please confirm if you had denied access for the first link - that one should be public. The second one is expected to not be accessible.

You can download the study in question by installing s5cmd and running the command below passing in the manifest attached here:

s5cmd --no-sign-request --endpoint-url https://s3.amazonaws.com run ./manifest.csv

manifest.csv

For those interested, the study in question is located in Imaging Data Commons. The manifest file was created by running the following query in BigQuery, which maps the DICOM StudyInstanceUID that can be seen in the URL to the locations of the AWS bucket folders containing the series included in that study:

WITH
  series_folders AS (
  SELECT
    DISTINCT(CONCAT("s3://",SPLIT(aws_url,'/')[2],'/',SPLIT(aws_url,'/')[3])) AS series_folder
  FROM
    `bigquery-public-data.idc_current.dicom_all`
  WHERE
    StudyInstanceUID = "1.3.6.1.4.1.32722.99.99.99748660999232950779348544769645328227" )
SELECT
  CONCAT("cp ", series_folder,"/* .") as manifest_cp_command
FROM
  series_folders
jbocce commented 1 year ago

Thank you so kindly @fedorov. It was the second link I was denied for and the first one I can access.

Thank you for all the information you provided which helped me reproduce the problem so that it can be triaged appropriately.

Thanks once again.

hajrudinco commented 1 year ago

We encountered this error when converting TotalSegmentator NIFTI output to DICOM SEG files and displaying them in the OHIF viewer.

sedghi commented 1 year ago

Thanks for the debugging info. This is already fixed in Cornerstone3D and I need to create a PR for it here