How to display dicom image from cornerstoneWADOImageLoader using threejs Texture #6057
Unanswered
yasertalha
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i) I uploaded a Dicom image (.dcm) using html input Tag
ii) files (e.target.files) received from uploading dicom image is added to cornerstoneWADOImageLoader library using below func
cornerstoneWADOImageLoader.wadouri.fileManager.add(file);
iii) Then using function
cornerstone.loadImage
, I got the element .iV) from element I extracted the canvas.toDataURL() and assigned as image.src to a new image
v) Then assigned image as input to
new THREE.Texture(imageTag)
Finally not able to view the uploaded Dicom image.
check this codesandbox ,
if condition in line : 36 , is the code need to be checked
Beta Was this translation helpful? Give feedback.
All reactions