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

[Bug]: Unable to view 3d colored dicom on volume viewport. #680

Closed
schopdekar opened this issue Jul 7, 2023 · 6 comments · Fixed by #687
Closed

[Bug]: Unable to view 3d colored dicom on volume viewport. #680

schopdekar opened this issue Jul 7, 2023 · 6 comments · Fixed by #687

Comments

@schopdekar
Copy link

schopdekar commented Jul 7, 2023

Unable to view 3d colored dicom on volume viewport.

When I am trying to render 3d color dicom data using volume viewport I am receiving warnings stating "WebGL: INVALID_OPERATION: texSubImage3D: ArrayBufferView not big enough for request"

I have attached dummy color dicom as I cannot upload the patient data here. It should look something like this:
image

Issue screenshot:
image

Dummy Data:
dummy.dcm.zip

Steps to Reproduce

  1. Use Volume Viewport API example code.
  2. Upload the dummy dicom in your dicom web-server eg. orthanc
  3. Use the studyInstanceUID and seriesInstanceUID for loading the metadata and the volume.
  4. Run the file.
  5. Change the view to axial if you don't receive the error upfront.

The current behavior

Viewport is not rendering anything

The expected behavior

Viewport should render the given 3d color dicom

OS

macOS

Node version

v16.15.0

Browser

Chrome 114.0.5735.198

@schopdekar schopdekar changed the title [Bug] [Bug]: Unable to view 3d colored dicom on volume viewport. Jul 7, 2023
@sedghi
Copy link
Member

sedghi commented Jul 10, 2023

So I looked at the provided data, it has a lot of metadata problems, the images are positioned on top of each other at [-50, -50, -50] and that makes our volume viewport non functional, I think our reset camera also has some problem with small image sizes (data is 18x56). If you can provide a correct data or send it to me over email I can look further ar.sedghi@gmail.ccom

@sedghi
Copy link
Member

sedghi commented Jul 10, 2023

I have some related fixes though #683

@schopdekar
Copy link
Author

@sedghi
I have sent you the data via email

@sedghi
Copy link
Member

sedghi commented Jul 12, 2023

I haven't received it yet, maybe message me on slack with the link to the data

@schopdekar
Copy link
Author

@sedghi My colleague Aryan has send the data to you on slack, yesterday.

@schopdekar
Copy link
Author

@sedghi
Hey, this piece of code change solved the issue. Works fine now.

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