# Averaging or Mean of two different 3D shaped models 

**URL:** <https://discourse.slicer.org/t/averaging-or-mean-of-two-different-3d-shaped-models/34940>\
**Category:** Support\
**Created:** [March 18, 2024, 2:52am UTC](https://discourse.slicer.org/t/averaging-or-mean-of-two-different-3d-shaped-models/34940 "2024-03-18T02:52:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aadarsh\_Salve](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aadarsh_salve/32/69695_2.png) [@Aadarsh\_Salve](https://discourse.slicer.org/u/Aadarsh_Salve)\
**Post date:** [March 18, 2024, 2:52am UTC](https://discourse.slicer.org/t/averaging-or-mean-of-two-different-3d-shaped-models/34940/1 "2024-03-18T02:52:28Z")

</div>

Hello, I have two different shaped 3D models of Human Ears and I want to create an average /mean of them. Could you please help me out with the code or method to create it?

---

<div class="post-metadata">

**Author:** ![edwardwang1](https://avatars.discourse-cdn.com/v4/letter/e/858c86/32.png) [@edwardwang1](https://discourse.slicer.org/u/edwardwang1)\
**Post date:** [March 20, 2024, 2:39pm UTC](https://discourse.slicer.org/t/averaging-or-mean-of-two-different-3d-shaped-models/34940/2 "2024-03-20T14:39:23Z")

</div>

Hi,

SlicerSALT was mentioned in a previous thread (["Averaging" 3D models](https://discourse.slicer.org/t/averaging-3d-models/6660)) but I don’t have personal experience with it.

For a research project previously, I’ve used the GIAS2 package in Python to build a statistical shape model from a number of mandibles. One of the components of the shape model is an average structure. The only caveat is that I do not know if it will work with only 2 samples.

---

<div class="post-metadata">

**Author:** ![Aadarsh\_Salve](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aadarsh_salve/32/69695_2.png) [@Aadarsh\_Salve](https://discourse.slicer.org/u/Aadarsh_Salve)\
**Post date:** [March 22, 2024, 7:52pm UTC](https://discourse.slicer.org/t/averaging-or-mean-of-two-different-3d-shaped-models/34940/3 "2024-03-22T19:52:37Z")

</div>

Thank you so much for your help!

---

<div class="post-metadata">

**Author:** ![Aadarsh\_Salve](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aadarsh_salve/32/69695_2.png) [@Aadarsh\_Salve](https://discourse.slicer.org/u/Aadarsh_Salve)\
**Post date:** [March 26, 2024, 9:27pm UTC](https://discourse.slicer.org/t/averaging-or-mean-of-two-different-3d-shaped-models/34940/4 "2024-03-26T21:27:21Z")

</div>

Hi, can you help me out with the steps on how to get an average for multiple ear sample?

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [March 27, 2024, 1:20am UTC](https://discourse.slicer.org/t/averaging-or-mean-of-two-different-3d-shaped-models/34940/5 "2024-03-27T01:20:28Z")

</div>

If you have landmarks, this is doable through the GPA module of SlicerMorph extension.

---

<div class="post-metadata">

**Author:** ![edwardwang1](https://avatars.discourse-cdn.com/v4/letter/e/858c86/32.png) [@edwardwang1](https://discourse.slicer.org/u/edwardwang1)\
**Post date:** [March 27, 2024, 4:41pm UTC](https://discourse.slicer.org/t/averaging-or-mean-of-two-different-3d-shaped-models/34940/6 "2024-03-27T16:41:31Z")

</div>

Hi,

In my project I exported my models as .ply files, and ran them through the GIAS2 pipeline, which is linked in my earlier post.

---

<div class="post-metadata">

**Author:** ![Aadarsh\_Salve](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aadarsh_salve/32/69695_2.png) [@Aadarsh\_Salve](https://discourse.slicer.org/u/Aadarsh_Salve)\
**Post date:** [March 27, 2024, 5:57pm UTC](https://discourse.slicer.org/t/averaging-or-mean-of-two-different-3d-shaped-models/34940/7 "2024-03-27T17:57:27Z")

</div>

Thanks, I’ll probably go through them and use them as a reference.
