# Ouput deformation fields in DICOM format

**URL:** https://discourse.itk.org/t/ouput-deformation-fields-in-dicom-format/2603
**Category:** Beginner Questions
**Tags:** dicom
**Created:** [January 11, 2020, 3:33am UTC](https://discourse.itk.org/t/ouput-deformation-fields-in-dicom-format/2603 "2020-01-11T03:33:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![spencermanwell](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/eada6e/32.png) [@spencermanwell](https://discourse.itk.org/u/spencermanwell)
#### Post date: [January 11, 2020, 3:33am UTC](https://discourse.itk.org/t/ouput-deformation-fields-in-dicom-format/2603/1 "2020-01-11T03:33:34Z")

</div>

Hello,

Does anyone have experience writing the deformation vector fields to DICOM, i.e. following the C.20.3 Deformable Spatial Registration Module? Does functionality exist within ITK to do this?

Thank you,

Spencer

---

<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: [January 11, 2020, 10:36pm UTC](https://discourse.itk.org/t/ouput-deformation-fields-in-dicom-format/2603/2 "2020-01-11T22:36:28Z")

</div>

Hi Spencer,

Welcome to the ITK community! ☀

You may be interested in this module:

[https://github.com/InsightSoftwareConsortium/ITKIOTransformDCMTK](https://github.com/InsightSoftwareConsortium/ITKIOTransformDCMTK)

which currently only supports non-deformable transformations; it could be a starting point for deformable transformations, though.

Cheers,  
Matt

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.itk.org/user_avatar/discourse.itk.org/lassoan/32/27_2.png) [@lassoan](https://discourse.itk.org/u/lassoan)
#### Post date: [January 12, 2020, 6:25am UTC](https://discourse.itk.org/t/ouput-deformation-fields-in-dicom-format/2603/3 "2020-01-12T06:25:41Z")

</div>

You can import/export deformable DICOM SRO using [3D Slicer](https://www.slicer.org/) and its [SlicerRT extension](http://www.slicerrt.org/). Since in 3D Slicer you can save/load any ITK transforms, you can convert any ITK transforms to/from DICOM SRO.

You can access these features using either GUI or Python scripting. You can also take the source code from SlicerRT and put it into ITK to make its transform IO support deformable DICOM SRO as well.

---

<div class="post-metadata">

### Author: ![Aish](https://discourse.itk.org/letter_avatar_proxy/v4/letter/a/3d9bf3/32.png) [@Aish](https://discourse.itk.org/u/Aish)
#### Post date: [February 16, 2021, 4:53pm UTC](https://discourse.itk.org/t/ouput-deformation-fields-in-dicom-format/2603/4 "2021-02-16T16:53:42Z")

</div>

Hi,

I have 3D slicer of version 4.5. I cannot upgrade to latest version anytime sooner due to certain constraints. I just wanted to know if it is possible to load DICOM SRO into the slicer and access the name of the loaded registration transformation through python scripting.

Also is there a way to convert this dicom file into .h5 or .nrrd format using plastimatch ? I am really new in using slicer and any help would be much appreciated.

Thanks,  
Aish

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.itk.org/user_avatar/discourse.itk.org/lassoan/32/27_2.png) [@lassoan](https://discourse.itk.org/u/lassoan)
#### Post date: [February 16, 2021, 5:12pm UTC](https://discourse.itk.org/t/ouput-deformation-fields-in-dicom-format/2603/5 "2021-02-16T17:12:10Z")

</div>

Slicer 4.5 is over 5 years old, so it is not very likely that there are any volunteers to help you with it, but you may get help by paid support from one of [Slicer commercial partners](https://slicer.readthedocs.io/en/latest/user_guide/about.html#commercial-partners).
