cornerstonejs / cornerstone3D

Cornerstone is a set of JavaScript libraries that can be used to build web-based medical imaging applications. It provides a framework to build radiology applications such as the OHIF Viewer.
https://cornerstonejs.org
MIT License
590 stars 302 forks source link

Image display blur #1394

Open guzhh opened 4 months ago

guzhh commented 4 months ago

Describe the Bug

Cornerstone3D use imageLoader.LoadAndCacheImage after loading images, reuse volumeLoader.CreateAndCacheVolume create a volume, Load the image once using volume.load(), and the image becomes blurry

Steps to Reproduce

Cornerstone3D use imageLoader.LoadAndCacheImage after loading images, reuse volumeLoader.CreateAndCacheVolume create a volume, Load the image once using volume.load(), and the image becomes blurry

The current behavior

Cornerstone3D use imageLoader.LoadAndCacheImage after loading images, reuse volumeLoader.CreateAndCacheVolume create a volume, Load the image once using volume.load(), and the image becomes blurry 6aaab5ef03faa6bd95f1fb546730a212

The expected behavior

The image is still displayed normally

OS

Windows 11

Node version

18.16.0

Browser

Chrome 126.0.6478.127

sedghi commented 2 weeks ago

Can you please provide anonymized data?

sedghi commented 2 weeks ago

Can you check the latest OHIF viewer, which now includes Cornerstone 3D 2.0?

Here are the migration guides:

Try OHIF locally: https://viewer-dev.ohif.org/localbasic
Try Cornerstone3D 2.0 locally: https://www.cornerstonejs.org/live-examples/local.html

https://docs.ohif.org/migration-guide/3p8-to-3p9/