You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with cardiac data. I have a ML model that I have trained that automatically identifies regions of interest on the heart. The acquisition data is the same slice position, but just done 20 different times. What I am trying to do is apply this model, generate a mask, and then generate a DICOM SEG file to load into OHIF. From there, I have some post processing I am working on implementing but I am currently stuck with what I suspect is a rendering issue.
The issue that I am facing is that, while the region of interest naturally changes as the heart expands and contracts, which I can capture with my model, and generate an associated mask/DICOM SEG file, when I load this file into OHIF, it only shows the one slice of the SEG file over every one of the 20 frames (i.e, when I scroll, the segmentation does not change, but the image does). If I open this seg file with MicroDicom, I can see that the segmentation does indeed change over time.
Steps to Reproduce
Load in a CINE cardiac scan
Compute an associated DICOM SEG file for one or more segments
Load in the computed DICOM SEG to OHIF
Scroll through the stack
Notice that while the cine changes, the segmentation does not
The current behavior
Note that I just have 3 random regions of interest in the video below for debugging:
CurrentState.mp4
And here is the file in OHIF:
OHIF.mp4
There are no stack traces in the developer console, so it appears to load the segmentation without issue.
The expected behavior
I would expect each of the segments to show as computed for each slice, not just the first of each through the duration of the CINE. I am not sure if this is working as intended however, and what I am actually after is a feature enhancement.
Thanks for taking the time to look at the attached videos. Please let me know if there is anything else I can provide that would be more helpful
OS
Windows 10
Node version
v20.13.1
Browser
Chrome Version 132.0.6834.197 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered:
We don't currently support 4D SEG. However, it shouldn't be too difficult to implement; you could take a look at it. The logic is within the isReferenceViewable function in the viewport. This function checks if the SEG metadata matches the viewport and renders them accordingly. It seems the 4D metadata aspects are missing from that check.
Gotcha, that makes sense, thanks for pointing me in the right direction! I'll take a stab at implementing this and push it upstream if it would be of value
Describe the Bug
Hello All!
I am working with cardiac data. I have a ML model that I have trained that automatically identifies regions of interest on the heart. The acquisition data is the same slice position, but just done 20 different times. What I am trying to do is apply this model, generate a mask, and then generate a DICOM SEG file to load into OHIF. From there, I have some post processing I am working on implementing but I am currently stuck with what I suspect is a rendering issue.
The issue that I am facing is that, while the region of interest naturally changes as the heart expands and contracts, which I can capture with my model, and generate an associated mask/DICOM SEG file, when I load this file into OHIF, it only shows the one slice of the SEG file over every one of the 20 frames (i.e, when I scroll, the segmentation does not change, but the image does). If I open this seg file with MicroDicom, I can see that the segmentation does indeed change over time.
Steps to Reproduce
The current behavior
Note that I just have 3 random regions of interest in the video below for debugging:
CurrentState.mp4
And here is the file in OHIF:
OHIF.mp4
There are no stack traces in the developer console, so it appears to load the segmentation without issue.
The expected behavior
I would expect each of the segments to show as computed for each slice, not just the first of each through the duration of the CINE. I am not sure if this is working as intended however, and what I am actually after is a feature enhancement.
Thanks for taking the time to look at the attached videos. Please let me know if there is anything else I can provide that would be more helpful
OS
Windows 10
Node version
v20.13.1
Browser
Chrome Version 132.0.6834.197 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered: