# Problems with Segment Registration Module

**URL:** <https://discourse.slicer.org/t/problems-with-segment-registration-module/35951>\
**Category:** Support\
**Created:** [May 6, 2024, 5:45pm UTC](https://discourse.slicer.org/t/problems-with-segment-registration-module/35951 "2024-05-06T17:45:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nelson\_Wu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nelson_wu/32/70291_2.png) [@Nelson\_Wu](https://discourse.slicer.org/u/Nelson_Wu)\
**Post date:** [May 6, 2024, 5:45pm UTC](https://discourse.slicer.org/t/problems-with-segment-registration-module/35951/1 "2024-05-06T17:45:25Z")

</div>

Good afternoon,

I was trying to compute the deformation vector field between two whole brain MRI gray-scale (with segmentations) images. I tried to use the segment registration module to assist in that purpose. However, as I input the images and segmentations of the fixed and moving images and hit run, a watch icon appeared, and the following error messages are generated in the Python console:

Traceback (most recent call last):  
File “/Applications/Slicer.app/Contents/Extensions-32840/SegmentRegistration/lib/Slicer-5.7/qt-scripted-modules/SegmentRegistration.py”, line 256, in onPerformRegistration  
if self.logic.performRegistration():  
File “/Applications/Slicer.app/Contents/Extensions-32840/SegmentRegistration/lib/Slicer-5.7/qt-scripted-modules/SegmentRegistration.py”, line 371, in performRegistration  
self.createContourLabelmaps()  
File “/Applications/Slicer.app/Contents/Extensions-32840/SegmentRegistration/lib/Slicer-5.7/qt-scripted-modules/SegmentRegistration.py”, line 560, in createContourLabelmaps  
movingAnatomyOrientedImageData.UnRegister(None)  
AttributeError: ‘NoneType’ object has no attribute ‘UnRegister’  
[VTK] CropVolume: Invalid input volume or ROI  
[Python] Unable to access cropped moving volume  
[Python] Invalid data selection  
[VTK] Generic Warning: In vtkSlicerSegmentationsModuleLogic.cxx, line 408  
[VTK] vtkSlicerSegmentationsModuleLogic::CreateOrientedImageDataFromVolumeNode: Invalid volume node

I have saved both the images and segmentations in nii.gz format and loaded them as volume and segmentations respectively. Should I change the input data into DICOM as in the tutorials to make it working? Thank you for the help in advance!
