-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] scaled PT image with lut defined on metadata return wrong Volume VOI #1806
Comments
Do you have a data anonymized to share? Screenshots showing what is wrong? |
Here is the images, I can't really get a screenshot but anyway it's just all black. |
OHIF handles it correctly https://viewer-dev.ohif.org/localbasic hmmm |
Also looks good here too https://www.cornerstonejs.org/live-examples/local.html |
I'm not familiar with OHIF, I checked cornerstone examples but didn't find a volume example where you can drop your own images. |
seems like OHIf is not scaling the volume, probe shows me raw values instead of SUV |
i guess it is not corrected PT then. Which software shows SUV for it? |
Found out weasis is rendering it correctly with scaled values |
We use this library , so seems like the lib thinks the required metadata is not provided, or we have limited support for suv of this type |
I don't know why OHIF is not showing the scaled volume and I think we're diverging from original issue. Issue is about Also now that I took another pick into the code : if (!voi && imageVolume.imageIds.length) {
voi = await getVOIFromMiddleSliceMinMax(imageVolume);
voi = handlePreScaledVolume(imageVolume, voi);
}
|
Describe the Bug
I'm not sure at 100% that this is a bug as I'm not sure about the standard for this.
But I got a PT serie where images were scaled AND a
windowWidth
and aWindowCenter
were defined. Except those values are defined for raw pixel not scaled ones.This result in a VOI/Lut totally wrong, because pixels are scaled and VOI values are based on raw pixels value.
Steps to Reproduce
Load a PT image with scaling and VOI defined on metadata.
The current behavior
Wrong VOI is returned
The expected behavior
I'm not so sure about what should be done.
It seems to me that in the function below we should check if volume is scaled first and return according VOI no matter what.
But maybe correct behavior is to scale the metadata VOI somehow or even something else I don't know.
OS
Windows 11
Node version
v22.11.0
Browser
any
The text was updated successfully, but these errors were encountered: