mieweb / OHIF-Viewers

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

Multiframe US errors #2

Open norman-ma opened 2 years ago

norman-ma commented 2 years ago

When debugging multiframe US with vscode, the error gives that the SOPInstanceUID provided is not in the DisplaySet: image

This seems to be a cornerstone viewport related issue (which may relate to other issues like the frame rate and the like as those seem to also come from the viewport properties.

This seems to be where properties are set to the viewport: https://github.com/mieweb/OHIF-Viewers/blob/780f84af899aedc03b30a2c62749f270bcb01a5c/extensions/ohif-cornerstone-extension/src/OHIFCornerstoneViewport.js#L198

norman-ma commented 2 years ago

This line shows the creation of the frame stack within the cornerstone viewport.

The image_ids for the multiframe seem to be in the form;

{instance_image_id}?frame={frame_number} eg: "dicomweb:https://zeus.med-web.com/webchart/wctmanorman/webchart.cgi?f=stream&dcm_image_id={image_id}&rawdata&file_key={file-key}&session_id={session_id}&frame=0"

I'm not sure how they handle getting the SOPInstanceID with the frame query.

https://github.com/mieweb/OHIF-Viewers/blob/780f84af899aedc03b30a2c62749f270bcb01a5c/extensions/ohif-cornerstone-extension/src/OHIFCornerstoneViewport.js#L75