Describe the Bug
After upgrading Cornerstone packages from v1.84.4 → v4.22.3, the initial window level (WL/WW) is no longer applied correctly, causing the image to appear overexposed (completely white) on first render.
This issue did not occur in the older version and appears to be a regression.
Steps to Reproduce
- Load a attached DICOM image.
- Observe the initial rendered image.
- Notice that the image appears overexposed.
- Adjust window level manually → image becomes normal.
- This issue occurs during the initial rendering phase.
- Possible causes:
- Missing or incorrectly applied DICOM tags (WindowCenter, WindowWidth)
- Improper VOI (Volume of Interest) initialization
- Incorrect scaling or default viewport settings
Example DICOM file for test
Sample Dicom Images.zip
The current behavior
- On initial load, the image appears fully white (overexposed).
- WL/WW values seem to be set too high or not initialized correctly.
- The issue occurs before any user interaction.
- After manually adjusting the window level, the image renders correctly.
The expected behavior
- The image should render with appropriate default WL/WW values derived from DICOM metadata.
- No manual adjustment should be required for proper visualization.
System Information
{
"@cornerstonejs/core": "^1.84.4",
"@cornerstonejs/dicom-image-loader": "^1.84.4",
"@cornerstonejs/streaming-image-volume-loader": "^1.84.4",
"@cornerstonejs/tools": "^1.84.4"
}
Behavior:
- Images render correctly on initial load
- Proper WL/WW applied automatically
{
"@cornerstonejs/core": "^4.22.3",
"@cornerstonejs/dicom-image-loader": "^4.22.3",
"@cornerstonejs/streaming-image-volume-loader": "^1.86.1",
"@cornerstonejs/tools": "^4.22.3"
}
Behavior:
- Initial image is completely white (overexposed)
- WL/WW appears too high or not initialized
- Manual window adjustment fixes the image
Describe the Bug
After upgrading Cornerstone packages from v1.84.4 → v4.22.3, the initial window level (WL/WW) is no longer applied correctly, causing the image to appear overexposed (completely white) on first render.
This issue did not occur in the older version and appears to be a regression.
Steps to Reproduce
Example DICOM file for test
Sample Dicom Images.zip
The current behavior
The expected behavior
System Information
Behavior:
Behavior: