cornerstone3D icon indicating copy to clipboard operation
cornerstone3D copied to clipboard

Why are the same CT images displayed differently in older Cornerstone than in Cornerstone 3D?

Open FedWithMori opened this issue 3 years ago • 30 comments

HI,I have a problem I don't know how to solve. Can someone help me solve it? tks!!!

Display effect on old Cornerstone(This is the right effect): image

Display effect on new Cornerstone3D(This is the wrong effect): image

Same image loader: cornerstoneWADOImageLoader Scheme: dicomweb Same windowCenter: 68 Same windowWidth: 385

FedWithMori avatar May 20 '22 06:05 FedWithMori

为啥用3D,我看一下子就崩溃了

thisKing avatar May 20 '22 07:05 thisKing

您的邮件已经收到

FedWithMori avatar May 20 '22 07:05 FedWithMori

为啥用3D,我看一下子就崩溃了

还好吧,新版的架构比旧版还是好的,配合example和源码看就好

FedWithMori avatar May 20 '22 08:05 FedWithMori

Can you try it again, there has been a potential fix for this here https://github.com/cornerstonejs/cornerstone3D-beta/commit/d36a23a4eaf5bafcc8dddc0ab796065098df616a

sedghi avatar May 25 '22 12:05 sedghi

Can you try it again, there has been a potential fix for this here d36a23a I upgraded to 0.10.0, but it was not resolved, there is no change

FedWithMori avatar May 25 '22 14:05 FedWithMori

which viewport are you using? StackViewport or VolumeViewport?

sedghi avatar May 25 '22 14:05 sedghi

which viewport are you using? StackViewport or VolumeViewport?

StackViewport

FedWithMori avatar May 25 '22 14:05 FedWithMori

can you share the data (If the DICOM data does not have patient information (anywhere in the header etc.) nor baked in in the display, so no PHI at all)

sedghi avatar May 25 '22 14:05 sedghi

can you share the data (If the DICOM data does not have patient information (anywhere in the header etc.) nor baked in in the display, so no PHI at all)

Download this file dicomLink

FedWithMori avatar May 25 '22 14:05 FedWithMori

Doesn't download

sedghi avatar May 25 '22 15:05 sedghi

Doesn't download

Sorry, I gave you a temporary links, I will give you a new link。download

FedWithMori avatar May 26 '22 01:05 FedWithMori

It doesn't work either

sedghi avatar May 26 '22 02:05 sedghi

It doesn't work either

I cannot upload the file directly through Github, so I can only choose to send it to you by email. I am sorry for delaying your time。

FedWithMori avatar May 26 '22 02:05 FedWithMori

@FedWithMori maybe you can try:

cornerstoneWADOImageLoader.configure({
  // ...
  decodeConfig: {
    convertFloatPixelDataToInt: false, // 👈 set this to false
  },
});

// ...

1isten avatar May 30 '22 07:05 1isten

@FedWithMori maybe you can try:

cornerstoneWADOImageLoader.configure({
  // ...
  decodeConfig: {
    convertFloatPixelDataToInt: false, // 👈 set this to false
  },
});

// ...

That's how it was set up from the start, and it doesn't solve the problem image

FedWithMori avatar May 30 '22 07:05 FedWithMori

我也遇到了这个问题 1657100712144 我用的体积视口

SimonLee6 avatar Jul 06 '22 09:07 SimonLee6

您的邮件已经收到

FedWithMori avatar Jul 06 '22 09:07 FedWithMori

您的邮件已经收到

FedWithMori avatar Jul 27 '22 01:07 FedWithMori

这个问题解决了吗

tineke01 avatar Jul 27 '22 01:07 tineke01

Can you try drag and drop your image in our new demo https://www.cornerstonejs.org/live-examples/local.html

sedghi avatar Jul 29 '22 18:07 sedghi

应该是数据类型的问题 我用的volume视口 用的cornerstoneWADOImageLoader解析的dicom 它解析出来的pixelData是Unit16Array 而cornerstone3d需要的是 Unit8Array 或者 Float32Array 我改了这个代码就好了 image

SimonLee6 avatar Jul 30 '22 01:07 SimonLee6

应该是数据类型的问题 我用的volume视口 用的cornerstoneWADOImageLoader解析的dicom 它解析出来的pixelData是Unit16Array 而cornerstone3d需要的是 Unit8Array 或者 Float32Array 我改了这个代码就好了 image

牛逼!!!

tineke01 avatar Jul 30 '22 02:07 tineke01

Can you try drag and drop your image in our new demo https://www.cornerstonejs.org/live-examples/local.html

image

FedWithMori avatar Aug 01 '22 08:08 FedWithMori

您可以尝试在我们的新演示中拖放您的图像吗https://www.cornerstonejs.org/live-examples/local.html

图片

我qq加你好友了 麻烦通过一下,有点问题想咨询一下

tineke01 avatar Aug 02 '22 00:08 tineke01

can you see if your problem is fixed now?

sedghi avatar Aug 03 '22 20:08 sedghi

can you see if your problem is fixed now?

When I use the demo you provided, the display is normal, but my local project after upgrading dependence, the display error. Demo: image My local project: image Dependence: image

FedWithMori avatar Aug 04 '22 09:08 FedWithMori

update your wado image loader as well

sedghi avatar Aug 04 '22 12:08 sedghi

update your wado image loader as well

image

FedWithMori avatar Aug 05 '22 03:08 FedWithMori

Hmm, so couple of things, nuke the package.json lock or yarn lock and delete node modules (maybe that fixes it). If not are you registering a custom metadata provider in the app?

sedghi avatar Aug 05 '22 15:08 sedghi

您的邮件已经收到

FedWithMori avatar Oct 11 '22 09:10 FedWithMori