# After MRI Dicom file registration ... How to export this registration file in DICOM format

**URL:** https://discourse.slicer.org/t/after-mri-dicom-file-registration-how-to-export-this-registration-file-in-dicom-format/26855
**Category:** Support
**Tags:** registration, dicom
**Created:** [December 20, 2022, 5:35pm UTC](https://discourse.slicer.org/t/after-mri-dicom-file-registration-how-to-export-this-registration-file-in-dicom-format/26855 "2022-12-20T17:35:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mahmoud](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mahmoud/32/12259_2.png) [@mahmoud](https://discourse.slicer.org/u/mahmoud)
#### Post date: [December 20, 2022, 5:35pm UTC](https://discourse.slicer.org/t/after-mri-dicom-file-registration-how-to-export-this-registration-file-in-dicom-format/26855/1 "2022-12-20T17:35:09Z")

</div>

Hello 👋👋  
Please, can help me to how export DICOM format after the two mri sequence Images registration.

I mean in my question  
I want to get Dicom new registration images separately from move and fix image …to help with the clinical process

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [December 20, 2022, 6:40pm UTC](https://discourse.slicer.org/t/after-mri-dicom-file-registration-how-to-export-this-registration-file-in-dicom-format/26855/2 "2022-12-20T18:40:53Z")

</div>

DICOM spatial registration object export is provided by SlicerRT extension. It supports both rigid and deformable transforms.

You can right-click on the transform in `Data` module, verify that the export type is `REG...` and choose `Export to DICOM` then click Export.

If `REG...` export type is not offered then the registration tool that you used did not set the fixed and moving image reference. You can do this by copying these few lines into the Python console (update the node names according to actual volume and transform node names in your scene):

```python
transform = getNode('Transform')
fixedVolume = getNode('MRBrainTumor1')
movingVolume = getNode('MRBrainTumor2')
transform.SetNodeReferenceID(transform.GetMovingNodeReferenceRole(), movingVolume.GetID())
transform.SetNodeReferenceID(transform.GetFixedNodeReferenceRole(), fixedVolume.GetID())

```

All this is a bit clunky, but the need for DICOM spatial registration object so rarely comes up that we did not spend much time making this feature more convenient.
