# How to convert a DcmDataSet of dcmtk to itk::Image ?

**URL:** https://discourse.itk.org/t/how-to-convert-a-dcmdataset-of-dcmtk-to-itk-image/4839
**Category:** Community
**Tags:** dicom
**Created:** [March 1, 2022, 6:50am UTC](https://discourse.itk.org/t/how-to-convert-a-dcmdataset-of-dcmtk-to-itk-image/4839 "2022-03-01T06:50:08Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [March 1, 2022, 2:43pm UTC](https://discourse.itk.org/t/how-to-convert-a-dcmdataset-of-dcmtk-to-itk-image/4839/2 "2022-03-01T14:43:13Z")

</div>

I am not aware of a totally convenient way to do that. @mihail.isakov or @mathieu.malaterre might know more.

See also previous discussion about that:

> [@Reading/Writing Images to/from Memory (Rather than Files)](https://discourse.itk.org/t/reading-writing-images-to-from-memory-rather-than-files/3763):
>
> I’m trying to construct an itk::Image from an in-memory buffer, rather than from a file on disk. The image data itself is formatted as an NRRD. The buffer has been filled by an external program, and at some point I would like to be able to write back the image to this buffer (or allocate a new one and write it there). itk::ImageFileReader only seems to support reading from a file, so that seems out. itk::ImportImageFilter seems to deal with image data that has no corresponding metadata (or met…

---

_[View the full topic](https://discourse.itk.org/t/how-to-convert-a-dcmdataset-of-dcmtk-to-itk-image/4839)._
