# Saved Transformed Registration for Calculating Model To Model Distance

**URL:** https://discourse.slicer.org/t/saved-transformed-registration-for-calculating-model-to-model-distance/4739
**Category:** Support
**Created:** [November 13, 2018, 4:47am UTC](https://discourse.slicer.org/t/saved-transformed-registration-for-calculating-model-to-model-distance/4739 "2018-11-13T04:47:11Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Olivia\_Yeuhsin\_Chou](https://avatars.discourse-cdn.com/v4/letter/o/58f4c7/32.png) [@Olivia\_Yeuhsin\_Chou](https://discourse.slicer.org/u/Olivia_Yeuhsin_Chou)
#### Post date: [November 13, 2018, 4:47am UTC](https://discourse.slicer.org/t/saved-transformed-registration-for-calculating-model-to-model-distance/4739/1 "2018-11-13T04:47:11Z")

</div>

Operating system: windows  
Slicer version: 4.8.1

Hello,

I have a question regarding how I can save registration (done under transform module) to a file form that could be used for calculating model to model distance.

The registration was automatically saved as “.h5” by the software, and when I tried calculating “model to model distance” with the “.h5” registration, the calculation just ran forever and did not come up with an result.

- Olivia

---

<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: [November 15, 2018, 8:34pm UTC](https://discourse.slicer.org/t/saved-transformed-registration-for-calculating-model-to-model-distance/4739/2 "2018-11-15T20:34:33Z")

</div>

Try latest version of Slicer.

Can you share an example scene (saved as .mrb file) where you can reproduce the issue? Tell us the exact steps that you do after you load the scene.

---

<div class="post-metadata">

### Author: ![Olivia\_Yeuhsin\_Chou](https://avatars.discourse-cdn.com/v4/letter/o/58f4c7/32.png) [@Olivia\_Yeuhsin\_Chou](https://discourse.slicer.org/u/Olivia_Yeuhsin_Chou)
#### Post date: [November 15, 2018, 11:08pm UTC](https://discourse.slicer.org/t/saved-transformed-registration-for-calculating-model-to-model-distance/4739/3 "2018-11-15T23:08:32Z")

</div>

Here is the scene. This is after I’ve registered the 2nd time point surface model(in vtk format) onto the 1st time point surface model. I wanted to save the models in their registered positions, so that I can later generate model to model distance color map off it. But on the save options, there was not an option for saving the registered models as vtk or gipl format.

 ![Picture1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/c/8c765cf40a8755aaf10efbe63a0ec75678018a9a.jpeg)

---

<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: [November 16, 2018, 4:34am UTC](https://discourse.slicer.org/t/saved-transformed-registration-for-calculating-model-to-model-distance/4739/4 "2018-11-16T04:34:21Z")

</div>

If you want to persistently modify model point positions then _harden_ the transform on the model. You can do it in _Transforms_ module (select the transformed node in Apply transform / Transformed section and click harden button) or in _Data_ module’s _Transform hierarchy_ tab (right-click on transformed node and click _Harden transform_).

---

<div class="post-metadata">

### Author: ![Olivia\_Yeuhsin\_Chou](https://avatars.discourse-cdn.com/v4/letter/o/58f4c7/32.png) [@Olivia\_Yeuhsin\_Chou](https://discourse.slicer.org/u/Olivia_Yeuhsin_Chou)
#### Post date: [November 29, 2018, 10:33pm UTC](https://discourse.slicer.org/t/saved-transformed-registration-for-calculating-model-to-model-distance/4739/5 "2018-11-29T22:33:47Z")

</div>

So I was able to save the transform following your advice!! Thanks a lot!!

However, I’ve ran into another problem. That is, after creating a color map file with the transformed models in “model to model distance module”, I moved on to the “ShapePolulationView” (as instructed in DCBIA tutorial video #5A 3D), and nothing happened when I clicked apply . I was waiting for an independent window to pop up like in the tutorial, but nothing happened. Any ideas on how to get the colormap module window to show?

Here is how the scene look like:

 ![Picture1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/5/a5a2d969998497c06775b2f13a6c10cb9a3d61c3.jpeg)

Thanks in advance for any suggestions!!

---

<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: [November 30, 2018, 12:23am UTC](https://discourse.slicer.org/t/saved-transformed-registration-for-calculating-model-to-model-distance/4739/6 "2018-11-30T00:23:40Z")

</div>

ShapePopulationViewer only works in latest nightly version of Slicer. @jcfr can you confirm?

Most features of ShapePopulationViewer are also available directly in Slicer. What would you like to do?

---

<div class="post-metadata">

### Author: ![Olivia\_Yeuhsin\_Chou](https://avatars.discourse-cdn.com/v4/letter/o/58f4c7/32.png) [@Olivia\_Yeuhsin\_Chou](https://discourse.slicer.org/u/Olivia_Yeuhsin_Chou)
#### Post date: [November 30, 2018, 12:35am UTC](https://discourse.slicer.org/t/saved-transformed-registration-for-calculating-model-to-model-distance/4739/7 "2018-11-30T00:35:49Z")

</div>

I would like to get my registered models to show quantitative changes in colormaps

---

<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: [November 30, 2018, 1:51pm UTC](https://discourse.slicer.org/t/saved-transformed-registration-for-calculating-model-to-model-distance/4739/8 "2018-11-30T13:51:05Z")

</div>

You can go to Models module and enable coloring by distance in _Scalars_ section: check _Visible_ checkbox, choose _Active scalar_, and you may further customize display by selecting colormap, displayed range, thresholding, etc.
