-
Notifications
You must be signed in to change notification settings - Fork 336
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] dicom-image-loader: createImage uses now undefined options.decodeConfig #916
Comments
For now I can workaround this bug doing the following in my Cornerstone init routine - not sure how safe that is: cornerstoneDICOMImageLoader.internal.setOptions({
strict: false,
decodeConfig: {
convertFloatPixelDataToInt: true,
use16BitDataType: false,
},
}); |
Thanks for the report. @wayfarer3130 I don't think we should have touched this right? |
@sedghi - yes, that was touched by Chris I think. There was an issue with having it in the decoder rather than in the params on the individual decode that was causing problems. |
@abustany Can you create a PR for this and revert the changes? |
sure, will do |
Describe the Bug
Commit 85fd193 removed the
decodeConfig
member fromoption.ts
(see the diff ), however that code is still used in createImage.ts, at least in version 1.34.0.Steps to Reproduce
The current behavior
Error:
createImage.ts:155 Uncaught (in promise) TypeError: Cannot destructure property 'use16BitDataType' of 'l2' as it is undefined.
The expected behavior
The image should load
OS
Linux
Node version
18.16.1
Browser
Chromium 119.0.6045.159, Firefox 120.0b9
The text was updated successfully, but these errors were encountered: