# Segment registration

**URL:** https://discourse.slicer.org/t/segment-registration/13455
**Category:** Support
**Created:** [September 12, 2020, 3:12am UTC](https://discourse.slicer.org/t/segment-registration/13455 "2020-09-12T03:12:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Pratik](https://avatars.discourse-cdn.com/v4/letter/p/4bbf92/32.png) [@Pratik](https://discourse.slicer.org/u/Pratik)
#### Post date: [September 12, 2020, 3:12am UTC](https://discourse.slicer.org/t/segment-registration/13455/1 "2020-09-12T03:12:32Z")

</div>

I am trying to compare the coordinates of a geometry before and after deformation in order to compute displacements in x,y and z direction. I am using segment registration feature from 3D slicer to register the two segments. However, when I press perform registration, it just loads but does not do anything. Just wanted to know if I am doing it wrong or if this usually takes very long time. I have attached a pic of my segments and the setup used.

 ![segments](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/a/8a145e2f670e35663255ec8c8b39e9c6c24e1020.png)

---

<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: [September 12, 2020, 4:29am UTC](https://discourse.slicer.org/t/segment-registration/13455/2 "2020-09-12T04:29:51Z")

</div>

Could you try if registration works if you select a fixed and moving image? You can probably use a labelmap volume exported from the segmentation (by right-clicking on the segmentation in Data module).

---

<div class="post-metadata">

### Author: ![Pratik](https://avatars.discourse-cdn.com/v4/letter/p/4bbf92/32.png) [@Pratik](https://discourse.slicer.org/u/Pratik)
#### Post date: [September 12, 2020, 4:52am UTC](https://discourse.slicer.org/t/segment-registration/13455/3 "2020-09-12T04:52:02Z")

</div>

Hi Andras,

Thank you for your prompt reply. I created the segments from stl files. When you refer to labelmap volume from the segmentation, do you mean to say exporting as binary labelmap? (screenshot attached)

 ![export](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/b/8b8eb6bf567d2936177f282dc9bb34857320cfea.jpeg)

 ![export1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/6/f60f310c6ca516af3225cf6aca7f2e47bce194db.png)

When I do this and retry registration, i still cannot select anything from the image i.e the volume dropdown.

Regards  
Pratik

---

<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: [September 12, 2020, 4:59am UTC](https://discourse.slicer.org/t/segment-registration/13455/4 "2020-09-12T04:59:41Z")

</div>

Probably it expects a scalar volume and not labelmap volume. Go to Volumes module’s Information section to convert the labelmap volumes to scalar volumes.

---

<div class="post-metadata">

### Author: ![Pratik](https://avatars.discourse-cdn.com/v4/letter/p/4bbf92/32.png) [@Pratik](https://discourse.slicer.org/u/Pratik)
#### Post date: [September 12, 2020, 5:55am UTC](https://discourse.slicer.org/t/segment-registration/13455/5 "2020-09-12T05:55:50Z")

</div>

Hi Andras,

My overall aim is to determine how the coordinates of test3 changes as it moves to the configuration of test4 (see pic below)

 ![test.PNG](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/3/73fd7348174519784bb9891e2708180b9c255bd7.jpeg)

The segment registration does seem to complete when i use the scalar volume as input. However, i still do not understand how I can use the end result to fulfil my aim and if indeed the registration has been done correctly (attached the results i can view after registration) .

 ![postregistration](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/b/9b5ef508bcbd1b9377f6ef8697dc5d54d602c4da.png)

From my understanding, in the surface registration module, the initial configuration actually transforms to the desired configuration and this way I could export both the initial and transformed coordinates and find the change in X,Y ,Z. Since this module only works for rigid motions, I am using the segment registration instead but I cant see the transformation happening in this module.
