0
votes

I am able to render '.dcm file' using X.renderer3D() and X.renderer2D(). But the issue is, the image is not displayed completely.

When I manually uncompress and test, it is working fine.

We can try to uncompress and render it at run-time, but it will be an cpu intensive operation right ?

Can any one suggest the right way to achieve the rendering of compressed dicom file.

Advance Thanks for your time.

1
Please post your code it will be useful to know what's wrong with youWillie Cheng

1 Answers

0
votes

XTK doesn't support compressed DICOM format. You could hack it in though (https://github.com/xtk/X/blob/viewerjs/io/parserDCM.js#L950-L1023). The main issue is that it requires adding external libraries to XTK.

I would recommend to use AMI that natively supports compressed DICOM format. AMI is still a work in progress but should already allow you to build more advanced apps. Please do not hesitate to submit feedback, pull requests, report bugs, etc.

Try to upload you DICOM images there: http://fnndsc.github.io/ami/#viewers_dicom2D

enter image description here

AMI on Github: https://github.com/FNNDSC/ami