OHIF / Viewers

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

Segmentation Settings UI - Phase 2 #1458

Closed JamesAPetts closed 4 years ago

JamesAPetts commented 4 years ago

Second part of #1370.

Now #1392 is complete, we need two more features from the original ticket:

Overview:

Example: Eye icon on the right of the panel to toggle visibility. clicking on left panel containing color and number will jump to segment: Screenshot 2020-03-17 at 11 15 07

Implementation Details:

setters.toggleSegmentVisibility(
  elementOrEnabledElementUID,
  segmentIndex,
  labelmapIndex
);

isSegmentVisible(
  elementOrEnabledElementUID,
  segmentIndex,
  labelmapIndex
)

For a given segment Index:

vtkjs specific logic shall be a seperate ticket:

JamesAPetts commented 4 years ago

On hold until further feedback from some people at IDC.

JamesAPetts commented 4 years ago

@pieper @fedorov Is the desired functionality here correct?

fedorov commented 4 years ago

@JamesAPetts yes, this looks fine to me. Sorry for the delay, I missed the mention.

fedorov commented 4 years ago

The screencast below demonstrates some of the issues with the current interface:

It is basically not clear whether segmentations are available for a given study. Segmentations list shows as empty, and looks like one needs to load imaging series that has segmentations first before segmentations list is populated. And even after that there seems to be a delay in that list being populated. See screencast here:

https://www.screencast.com/t/g6wzeltT

The URL for the study shown int this screencast is here: https://idc-sandbox-000.firebaseapp.com/projects/idc-tcia/locations/us-central1/datasets/lidc-idri-seg-sr-dcm/dicomStores/lidc-idri-seg-sr-dcm/study/1.3.6.1.4.1.14519.5.2.1.6279.6001.131383203689189807643685075952&sa=D&ust=1586369794567000&usg=AFQjCNHVY4eaLmveYQCRHA98Hwr7lOXIVA

Per discussion with @JamesAPetts, it would be good to:

Does this make sense, anything I missed @JamesAPetts?

pieper commented 4 years ago

@fedorov

@swederik noticed that the extra tracking parameters on the URL pasted above breaks with the following error:

Request URL: https://healthcare.googleapis.com/v1beta1/projects/idc-tcia/locations/us-central1/datasets/lidc-idri-seg-sr-dcm/dicomStores/lidc-idri-seg-sr-dcm/dicomWeb/studies/1.3.6.1.4.1.14519.5.2.1.6279.6001.131383203689189807643685075952&sa=D&ust=1586369794567000&usg=AFQjCNHVY4eaLmveYQCRHA98Hwr7lOXIVA/series/undefined/metadata
Request Method: GET
Status Code: 404 

This one works: https://idc-sandbox-000.firebaseapp.com/projects/idc-tcia/locations/us-central1/datasets/lidc-idri-seg-sr-dcm/dicomStores/lidc-idri-seg-sr-dcm/study/1.3.6.1.4.1.14519.5.2.1.6279.6001.131383203689189807643685075952

So something, maybe slack, added this tracking stuff to the end:

&sa=D&ust=1586369794567000&usg=AFQjCNHVY4eaLmveYQCRHA98Hwr7lOXIVA
fedorov commented 4 years ago

No idea really, but I am glad you figured it out...

fedorov commented 4 years ago

@pieper @swederik @JamesAPetts I am really confused, need your help!

1) when I select segment from the dropdown, the content of the list below does not change - is this expected behavior or a bug? Screencast here: https://www.screencast.com/t/5l5ttFLWo4T

2) when I tried this same study (linked by @pieper in the comment above) some time ago over weekend (perhaps with a different version of OHIF Viewer) I was able somehow to display segmentation for the nodule in the screenshot 1 below, but now I don't see it. I know it should be there, because I made a screenshot for the paper (see screenshot 2 below). I have render inactive enabled (see screenshot 3 below), so I would expect that all segmentations should be rendered. image image image

3) there are some warnings/errors in the console - are those of any relevance? image

JamesAPetts commented 4 years ago

I'll move @fedorov 's comments to a new ticket, lets merge and close this one.