# Get average deformation from model to model

**URL:** <https://discourse.slicer.org/t/get-average-deformation-from-model-to-model/16271>\
**Category:** Support\
**Created:** [February 28, 2021, 11:32am UTC](https://discourse.slicer.org/t/get-average-deformation-from-model-to-model/16271 "2021-02-28T11:32:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BORIPHAT](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@BORIPHAT](https://discourse.slicer.org/u/BORIPHAT)\
**Post date:** [February 28, 2021, 11:32am UTC](https://discourse.slicer.org/t/get-average-deformation-from-model-to-model/16271/1 "2021-02-28T11:32:14Z")

</div>

Hello, Lassoan

I would like to get the average deformation from model to model, too. Now I install SlicerSALT and which module use for analyzing? and what’s kind of file that I must attach to the input and output directory? Now I have the deformation model (.nrrd) and I would like to compare it with the original model (.nrrd). Should I select both of them in the input directory or I have to do something before choose it? Thank you very much for your time and assistance in this matter.

Best regards,

---

<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:** [February 28, 2021, 1:41pm UTC](https://discourse.slicer.org/t/get-average-deformation-from-model-to-model/16271/2 "2021-02-28T13:41:10Z")

</div>

You can use ModelToModelDistance extension to compute displacement for each model point. You can then get the displacements as a numpy array using [slicer.util.arrayFromModelPointData](https://slicer.readthedocs.io/en/latest/developer_guide/slicer.html#slicer.util.arrayFromModelPointData) and compute any statistics that you need.

If you don’t have corresponding point sets in your models or want to do more sophisticated analysis then you can use SlicerSALT. You can reach SlicerSALT developers by posting in this category:

> **[SlicerSALT](https://discourse.slicer.org/c/community/slicer-salt/14)**
>
> SlicerSALT is an under development customized Slicer with the aim of consolidating the various statistical shape analysis tools in one place. You can find more information about SlicerSALT at its website.

---

<div class="post-metadata">

**Author:** ![BORIPHAT](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@BORIPHAT](https://discourse.slicer.org/u/BORIPHAT)\
**Post date:** [March 1, 2021, 10:56am UTC](https://discourse.slicer.org/t/get-average-deformation-from-model-to-model/16271/3 "2021-03-01T10:56:19Z")

</div>

Thank you very much for your kindness. Now I can solve my problem by following your suggestion.
