# how to read a multi-frame DICOM with itk-wasm

**URL:** <https://discourse.itk.org/t/how-to-read-a-multi-frame-dicom-with-itk-wasm/5029>\
**Category:** Beginner Questions\
**Tags:** itk-js\
**Created:** [May 31, 2022, 3:14am UTC](https://discourse.itk.org/t/how-to-read-a-multi-frame-dicom-with-itk-wasm/5029 "2022-05-31T03:14:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![maoweihang1995](https://discourse.itk.org/user_avatar/discourse.itk.org/maoweihang1995/32/2703_2.png) [@maoweihang1995](https://discourse.itk.org/u/maoweihang1995)\
**Post date:** [May 31, 2022, 3:14am UTC](https://discourse.itk.org/t/how-to-read-a-multi-frame-dicom-with-itk-wasm/5029/1 "2022-05-31T03:14:41Z")

</div>

I want to read a multi frame DICOM file with the API of readImageFile，but it doesn’t work。And it is normal to read a single frame file.

And using the demo also doesn’t work.I wonder if itk-wasm does not support multi frame DICOM.

 ![image](https://discourse.itk.org/uploads/default/original/2X/5/55803fd1c78246a5fc0d41c35ba676423fb4677d.png)

here is the demo i am using

> **[Itk Read Dicom](https://glitch.com/~itk-read-dicom)**
>
> Read a DICOM image file series or a single DICOM image file.

I would appreciate if anyone has any reply

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [May 31, 2022, 7:53am UTC](https://discourse.itk.org/t/how-to-read-a-multi-frame-dicom-with-itk-wasm/5029/2 "2022-05-31T07:53:05Z")

</div>

> [@maoweihang1995](#):
>
> it is normal to read a single frame file

Did you mean that reading single-slice DICOM works normally?

I am afraid you will have to wait for @matt.mccormick to come back to the office. That is expected to happen towards the end of June.

---

<div class="post-metadata">

**Author:** ![maoweihang1995](https://discourse.itk.org/user_avatar/discourse.itk.org/maoweihang1995/32/2703_2.png) [@maoweihang1995](https://discourse.itk.org/u/maoweihang1995)\
**Post date:** [May 31, 2022, 9:22am UTC](https://discourse.itk.org/t/how-to-read-a-multi-frame-dicom-with-itk-wasm/5029/3 "2022-05-31T09:22:22Z")

</div>

thanks for your reply

> [@dzenanz](#):
>
> I am afraid you will have to wait for @matt.mccormick to come back to the office. That is expected to happen towards the end of June.

Can I understand that itk-wasm does not support reading multi-frame DICOM yet ?

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [May 31, 2022, 9:37am UTC](https://discourse.itk.org/t/how-to-read-a-multi-frame-dicom-with-itk-wasm/5029/4 "2022-05-31T09:37:52Z")

</div>

I don’t know. Maybe it does. But it might need to use the regular (non-DICOM) way to read images.

---

<div class="post-metadata">

**Author:** ![Forrest](https://discourse.itk.org/user_avatar/discourse.itk.org/forrest/32/2317_2.png) [@Forrest](https://discourse.itk.org/u/Forrest)\
**Post date:** [May 31, 2022, 7:01pm UTC](https://discourse.itk.org/t/how-to-read-a-multi-frame-dicom-with-itk-wasm/5029/5 "2022-05-31T19:01:58Z")

</div>

Last time I checked, that API is still restricted to single-frame series. (I would have to check the code to see if the DICOM reading pipeline has changed.)

A more involved alternative is to use ITK directly with itk-wasm ([Hello WASM World! | itk-wasm](https://wasm.itk.org/examples/hello_world.html)), and potentially use something like itk::ImageSeriesReader.

---

<div class="post-metadata">

**Author:** ![maoweihang1995](https://discourse.itk.org/user_avatar/discourse.itk.org/maoweihang1995/32/2703_2.png) [@maoweihang1995](https://discourse.itk.org/u/maoweihang1995)\
**Post date:** [June 1, 2022, 1:21am UTC](https://discourse.itk.org/t/how-to-read-a-multi-frame-dicom-with-itk-wasm/5029/6 "2022-06-01T01:21:44Z")

</div>

> [@Forrest](#):
>
> A more involved alternative is to use ITK directly with itk-wasm ([Hello WASM World! | itk-wasm](https://wasm.itk.org/examples/hello_world.html)), and potentially use something like itk::ImageSeriesReader.

Thanks for the suggestion.And this is a good alternative

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [August 15, 2022, 9:06pm UTC](https://discourse.itk.org/t/how-to-read-a-multi-frame-dicom-with-itk-wasm/5029/7 "2022-08-15T21:06:42Z")

</div>

> [@maoweihang1995](#):
>
> Can I understand that itk-wasm does not support reading multi-frame DICOM yet ?

itk-wasm **does** support multi-frame DICOM’s with `readImageFile`.

> [@maoweihang1995](#):
>
> [Itk Read Dicom](https://glitch.com/~itk-read-dicom)

This example using itk.js needs to be updated to itk-wasm. Please try this [itk-wasm example](https://github.com/InsightSoftwareConsortium/itk-wasm/tree/master/examples/UMD).
