Skip to content
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

Cornerstone 3D Image Rendering using TargetBugger #498

Closed
jmannau opened this issue Dec 14, 2022 · 1 comment
Closed

Cornerstone 3D Image Rendering using TargetBugger #498

jmannau opened this issue Dec 14, 2022 · 1 comment

Comments

@jmannau
Copy link

jmannau commented Dec 14, 2022

Hi Team,

I have been building a new viewer with the 3D Beta. I have run into 2 image rendering issues using the WADO loader and C3D.

I have put together a small repo to reproduce these issues https://github.com/jmannau/cornerstone-3d-test. This repo includes 2 tiny projects with the latest versions from NPM of C3D (0.23.0), WadoLoader (4.4.0) and Cornerstone-Core (2.6.1).

These issues appear to be related to the use the targetBuffer https://github.com/cornerstonejs/cornerstoneWADOImageLoader/blob/master/src/imageLoader/createImage.js#L205 as both render the same as the legacy cornerstone if imageFrame.pixelData = typedArray; on line 205 is commented out.

The dicom files that are used for these issues are located https://github.com/jmannau/cornerstone-3d-test/tree/main/test-files

  1. Colour Image (fundus.dcm)

Screen Shot 2022-12-14 at 2 53 31 pm

  1. Corrupt Frames (oct.dcm)

Screen Shot 2022-12-14 at 2 51 55 pm

There are a number of frames in this oct that are corrupted. Specifically frame 98

@jmannau
Copy link
Author

jmannau commented Dec 15, 2022

Thanks @swederik the fix for this is to add

cornerstoneWadoImageLoader.configure({
  useWebWorkers: true,
  /**
   * Required for Cornerstone 3D
   */
  decodeConfig: {
    convertFloatPixelDataToInt: false,
  },
});

I have updated my test repo with this fix and the issue is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant