DICOM visualisation in vtk.js, deployed as external file in web

Hi All,

I’m a newbie to the VTK programming. Firstly apologies for such a naive question.

All I want is to read/visualise a DICOM file on a web page where vtk.js is imported as an external file. I’ve searched online and this blog but couldn’t find any resource to achieve this.

Can someone else come across such tutorial or example that could be used?

Any help will be much appreciated.

Many Thanks and

Kind Regards,
Bilal

Hi Bilal -

Here’s one way to do it.

There’s a live example here (takes a few seconds to load):

https://dcmjs-org.github.io/dcmjs/examples/vtkDisplay/index.html

Hi Steve,

Thanks a lot for such a quick response. I’m on it.

It is also possible to read the image with itk.js:

Generate a vtk.js ImageData with convertItkToVtkImage:

Then render with a vtk.js as an ImageSlice or Volume:

https://kitware.github.io/itk-vtk-viewer/app/?fileToLoad=https://data.kitware.com/api/v1/file/564a65d58d777f7522dbfb61/download/data.nrrd