OHIF / Viewers

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

[Bug] Incorrect behavior when loading DICOM-SEG #4335

Open MaartenDeMeyer opened 1 month ago

MaartenDeMeyer commented 1 month ago

Describe the Bug

The OHIF viewer has incorrect behavior when loading certain DICOM Segmentation files:

Extra info:

Steps to Reproduce

1) Load attached DICOM MRI + segmentation file in https://viewer.ohif.org/localbasic (eg via load folder). Sample file: ohif_seg_issue_repro.zip 2) doubleclick Segmentation file thumbnail, observe popup is displayed 3) answer YES 4) Notice segmentation mask is not visible. Notice segmentation is present in segmentation panel list

5) refresh the page, and re-load the same folder 6) doubleclick Segmentation file thumbnail, observe popup is displayed 7) answer NO 8) notice segmentation mask IS visible, but labels in segmentation panel list are NOT

The current behavior

The segmentation loading popup's 'NO' choice displays the segmentation mask, the popup's 'YES' choice loads the labels.

The expected behavior

The segmentation loading popup's 'YES' choice should load both mask and labels. 'NO' choice should not result in loaded masks.

OS

Ubuntu 22.04

Node version

N/A

Browser

Chrome 127.0.6533.99