# Any example or implement for image registration with cuda

**URL:** <https://discourse.itk.org/t/any-example-or-implement-for-image-registration-with-cuda/5107>\
**Category:** Engineering\
**Tags:** itk-releases, registration\
**Created:** [June 18, 2022, 7:02am UTC](https://discourse.itk.org/t/any-example-or-implement-for-image-registration-with-cuda/5107 "2022-06-18T07:02:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![busyyang](https://discourse.itk.org/user_avatar/discourse.itk.org/busyyang/32/2769_2.png) [@busyyang](https://discourse.itk.org/u/busyyang)\
**Post date:** [June 18, 2022, 7:02am UTC](https://discourse.itk.org/t/any-example-or-implement-for-image-registration-with-cuda/5107/1 "2022-06-18T07:02:46Z")

</div>

Hi all, we have implemented a demo for 2D/3D image registration with help by [this article](https://insight-journal.org/browse/publication/800). But it cost too much time when registration even over 5 minites.

We’d like to speed up the process. And cuda may help it, but we can’t find any examples or demo for it. Could anyone give us any help?

Or is there any other solution to speed up the image registration process?

---

<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:** [June 27, 2022, 11:54am UTC](https://discourse.itk.org/t/any-example-or-implement-for-image-registration-with-cuda/5107/2 "2022-06-27T11:54:36Z")

</div>

Some suggestions:

- Make sure you are compiling in Release mode, not Debug.
- Try lowering your [sampling percentage](https://github.com/InsightSoftwareConsortium/ITK/blob/v5.2.1/Examples/RegistrationITKv4/ImageRegistration4.cxx#L301-L306). This might hurt registration accuracy and convergence, so be careful how much you reduce it.
- Try multi-scale registration, if not doing so already.

---

<div class="post-metadata">

**Author:** ![busyyang](https://discourse.itk.org/user_avatar/discourse.itk.org/busyyang/32/2769_2.png) [@busyyang](https://discourse.itk.org/u/busyyang)\
**Post date:** [June 28, 2022, 6:09am UTC](https://discourse.itk.org/t/any-example-or-implement-for-image-registration-with-cuda/5107/3 "2022-06-28T06:09:57Z")

</div>

Thanks for your reply. We make sure we are compiling in Release mode. But 2D/3D registration process do speed a lot of time according to research papers. We developed some other metric which include NGC, PI etc. There is no need to set sampling percentage which is suit for mattes mutual information metric. And multi-sacle registration is also implemented.  
So we ask for a solution in cuda. Thanks for your reply again. If any idea later, it is welcome to share in here.

---

<div class="post-metadata">

**Author:** ![ma1282029525](https://discourse.itk.org/user_avatar/discourse.itk.org/ma1282029525/32/3084_2.png) [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Post date:** [January 17, 2023, 9:30am UTC](https://discourse.itk.org/t/any-example-or-implement-for-image-registration-with-cuda/5107/4 "2023-01-17T09:30:10Z")

</div>

Have you found an example of cuda registration
