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
547 stars 282 forks source link

[Bug] Convert Viewport Stack or Volume #1045

Open jlopes90 opened 8 months ago

jlopes90 commented 8 months ago

I used this old one and it works very well. packages/tools/examples/stackToVolumeWithAnnotations/_setViewports.ts

Then I switched to using this new one. packages/core/src/utilities/convertStackToVolumeViewport.ts packages/core/src/utilities/convertVolumeToStackViewport.ts

I tested the result:

  1. Viewport Stack

image

  1. Convert Stack to Volume

image

  1. Convert Volume to Stack

image

jlopes90 commented 8 months ago

These dicom files that I tested psir_HR_SA_MAG - 46.zip

sedghi commented 8 months ago

So on the way back to stack it doesn't work? I guess it might be the cacheOptimizations. Can you set that to off?

enableCacheOptimization: true,

jlopes90 commented 8 months ago

So on the way back to stack it doesn't work? I guess it might be the cacheOptimizations. Can you set that to off?

enableCacheOptimization: true,

enableCacheOptimization: false

The result is the same problem