# Is it possible to apply transformation to other images?

**URL:** https://discourse.itk.org/t/is-it-possible-to-apply-transformation-to-other-images/5302
**Category:** Beginner Questions
**Tags:** registration, python
**Created:** [August 29, 2022, 12:20am UTC](https://discourse.itk.org/t/is-it-possible-to-apply-transformation-to-other-images/5302 "2022-08-29T00:20:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![GrowlingM1ke](https://discourse.itk.org/user_avatar/discourse.itk.org/growlingm1ke/32/2910_2.png) [@GrowlingM1ke](https://discourse.itk.org/u/GrowlingM1ke)
#### Post date: [August 29, 2022, 12:20am UTC](https://discourse.itk.org/t/is-it-possible-to-apply-transformation-to-other-images/5302/1 "2022-08-29T00:20:00Z")

</div>

Hello,

I’ve been using [pyelastix](https://github.com/almarklein/pyelastix) toolkit in order to perform non-rigid image registration. I needed to boost the contrast within the images I was using in order to improve registration, however the pyelastix wrapper [does not allow applying the transform to other images](https://github.com/almarklein/pyelastix/issues/13). I was interested in finding out whether the [ITKElastix framework](https://github.com/InsightSoftwareConsortium/ITKElastix) allows passing the transformation to another image and if so, how can I do it.

Thank you for your time.

---

<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: [August 29, 2022, 1:07pm UTC](https://discourse.itk.org/t/is-it-possible-to-apply-transformation-to-other-images/5302/2 "2022-08-29T13:07:43Z")

</div>

Yes, the general approach is to invoke `itk.elastix_registration_method`, then `itk.transformix_filter` to other images. Take a look [here](https://github.com/KitwareMedical/HASI/blob/35e0a2bb13c4febf360282aa1fc1fd8f13305af0/src/hasi/mouse_femur_tibia_ct_morphometry.py#L174-L207) and cells 57-58 [here](https://github.com/KitwareMedical/HASI/blob/5ceff68344c34f3719c89ae4990fed1b3279e76e/examples/MouseFemurMicroCT.ipynb).
