Skip to content

Dicom Image Volume Rendering #678

@leyuan

Description

@leyuan

Hi,

We are trying to get volume rendering work with DICOM vti image written from vtk writer in Python. Following the structure, we are running into troubles trying to getindex.json file correctly generated. So few questions here and appreciate if someone can help!

  • How does index.json generated for vti data
  • Is using vtkHttpDataSetReader the correct choice of reading the data? Or it should be XMLReader
  • Is there a better way of reading Dicom images(a folder of .dcm files) instead of using vti file

Thanks!

Activity

jourdain

jourdain commented on Mar 30, 2018

@jourdain
Collaborator

To read a vti file you need to use that reader like here

The http reader use a different format which can be generated with that script.

But if you want to load DICOM, you should consider itk-js for loading your file natively and respect the orientation of the volume. @thewtex can tell you more about it.

Also you can see DICOM loading using itk-js and vtk-js here with ParaView Glance.

thewtex

thewtex commented on Apr 2, 2018

@thewtex
Member

Yes, as @jourdain mentioned, we can load the DICOM images directly via itk.js.

To load a multi-frame DICOM file (the entire volume is in one file), use itk/readImageFile. To load a DICOM file series, use itk/readImageDICOMFileSeries. Both of these are enabled in this reference application.

leyuan

leyuan commented on Apr 4, 2018

@leyuan
Author

Okay thanks!

rjsgml5698

rjsgml5698 commented on Apr 18, 2019

@rjsgml5698

I want to render dicom files using itk.js. So, I want to use itk / dicomImageDICOMFileSeries.

However, I am a beginner who is not familiar with itk.js.

Is there a simple example I can refer to?

rjsgml5698

rjsgml5698 commented on Apr 24, 2019

@rjsgml5698

Thank you for your help!! I will try it!

engrussman

engrussman commented on Jun 20, 2019

@engrussman

@thewtex I want to render the DICOM images but unable to use the following. would be grateful if you can give an independent example for beginners, please?

https://github.com/InsightSoftwareConsortium/itk-js/blob/680878359d89fa0e0e7b609cec494500762ec6af/test/Browser/DICOMSeriesTest.js#L22-L26

thewtex

thewtex commented on Jun 21, 2019

@thewtex
Member
engrussman

engrussman commented on Jun 21, 2019

@engrussman

@thewtex Many thanks for your prompt response. The example is working fine for one or two slices when I select more than that, it gets stuck on "Loading... " status. Can you please rectify the issue, please.

thewtex

thewtex commented on Jun 21, 2019

@thewtex
Member

@engrussman please share the data so the issue can be reproduced.

engrussman

engrussman commented on Jun 22, 2019

@engrussman

@engrussman please share the data so the issue can be reproduced.

@thewtex Sorry that was my bad. There was some issue with the dataset, after fixing that issue, now it is reading all the dicom files. Thanks for your support. Is there any example which also performs rendering of DICOM file using VTK.js?

thewtex

thewtex commented on Jun 22, 2019

@thewtex
Member
wcb2fwt

wcb2fwt commented on Sep 24, 2021

@wcb2fwt

@thewtex Hello, when the number of DCM files exceeds 800, there will be an error, I want to know why? thank you~
image

wcb2fwt

wcb2fwt commented on Sep 24, 2021

@wcb2fwt

@thewtex When I delete the remaining 650 DCM files, it can be displayed normally. I need your help, thank you very much
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @thewtex@jourdain@leyuan@wcb2fwt@rjsgml5698

        Issue actions

          Dicom Image Volume Rendering · Issue #678 · Kitware/vtk-js