# Cumulative Gausian Optimizer for Registration

**URL:** https://discourse.itk.org/t/cumulative-gausian-optimizer-for-registration/3777
**Category:** Algorithms
**Created:** [January 18, 2021, 10:04am UTC](https://discourse.itk.org/t/cumulative-gausian-optimizer-for-registration/3777 "2021-01-18T10:04:46Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Michael7](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@Michael7](https://discourse.itk.org/u/Michael7)
#### Post date: [January 18, 2021, 10:04am UTC](https://discourse.itk.org/t/cumulative-gausian-optimizer-for-registration/3777/1 "2021-01-18T10:04:46Z")

</div>

Hi,

I’m trying to configure and set an itk::CumulativeGaussianOptimizer instance to run a registration ( itk::PointSetToPointSetRegistrationMethod\<PointSetType, PointSetType \>) procedure.  
Nevertheless, I seem to find no example in the documentation, on the web, in the itk Manual nor in the itk forums.  
I was wondering if somebody could point me towards an example if possible like the ones we can find concerning the itk::LevenbergMarquardtOptimizer.

Best Regards,

Michael O.

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [January 18, 2021, 10:52pm UTC](https://discourse.itk.org/t/cumulative-gausian-optimizer-for-registration/3777/2 "2021-01-18T22:52:45Z")

</div>

I think this is the example you are looking for:

> <https://github.com/InsightSoftwareConsortium/ITK/blob/v5.2rc01/Examples/RegistrationITKv4/IterativeClosestPoint3.cxx#L152-L159>

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [January 18, 2021, 10:56pm UTC](https://discourse.itk.org/t/cumulative-gausian-optimizer-for-registration/3777/3 "2021-01-18T22:56:29Z")

</div>

I don’t think there is an example for `CumulativeGaussianOptimizer`, in case you were asking for an example similar to the one I provided in previous post.

---

<div class="post-metadata">

### Author: ![Michael7](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@Michael7](https://discourse.itk.org/u/Michael7)
#### Post date: [January 20, 2021, 10:25am UTC](https://discourse.itk.org/t/cumulative-gausian-optimizer-for-registration/3777/4 "2021-01-20T10:25:06Z")

</div>

Hi, thanks for your answer, but I’m indeed looking for a specific CumulativeGaussianOptimizer example used at a registration procedure. Since the optimizer (LM) presented in the IterativeClosestPoint3.cxx does not have the same configuration and settings I’m not able the run it when changing the optimizer type (obtaining a segfault).

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [January 20, 2021, 2:12pm UTC](https://discourse.itk.org/t/cumulative-gausian-optimizer-for-registration/3777/5 "2021-01-20T14:12:38Z")

</div>

If you decide to go through with using `CumulativeGaussianOptimizer` and get it working, it would be good if you contributed it as a new example for the benefit of others.

---

<div class="post-metadata">

### Author: ![Michael7](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@Michael7](https://discourse.itk.org/u/Michael7)
#### Post date: [January 21, 2021, 8:41am UTC](https://discourse.itk.org/t/cumulative-gausian-optimizer-for-registration/3777/6 "2021-01-21T08:41:59Z")

</div>

I would like to ! I think I’ll post asap an unitary test containing a simple mesh loader and registration procedure with vtk/itk hoping that we could together -with every little advice of any interested person- collaborate to make it work.
