# Transformation translation error?

**URL:** <https://discourse.itk.org/t/transformation-translation-error/5673>\
**Category:** Algorithms\
**Tags:** cpp, registration\
**Created:** [February 4, 2023, 6:59pm UTC](https://discourse.itk.org/t/transformation-translation-error/5673 "2023-02-04T18:59:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthieu\_Brucher](https://discourse.itk.org/user_avatar/discourse.itk.org/matthieu_brucher/32/2874_2.png) [@Matthieu\_Brucher](https://discourse.itk.org/u/Matthieu_Brucher)\
**Post date:** [February 4, 2023, 6:59pm UTC](https://discourse.itk.org/t/transformation-translation-error/5673/1 "2023-02-04T18:59:22Z")

</div>

I’m trying to use the example from [Register Image to Another Using Landmarks — v5.3.0](https://examples.itk.org/src/registration/common/registerimagetoanotherusinglandmarks/documentation) to set up a registration based on matching set of points. The estimated transform seems to me OK:  
AffineTransform (0x157604c30)  
RTTI typeinfo: itk::AffineTransform\<double, 2u\>  
Reference Count: 3  
Modified Time: 2361  
Debug: Off  
Object Name:  
Observers:  
none  
Matrix:  
0.999999 0.000201643  
-0.000235857 0.999915  
Offset: [4.35633, 3.04601]  
Center: [0, 0]  
Translation: [4.35633, 3.04601]  
Inverse:  
1 -0.00020166  
0.000235878 1.00009  
Singular: 0  
Unfortunately, it looks like the resulting image has a higher translation than this, and the image is also brighter, which doesn’t make sense…  
The two images are from the same set and would have the same spacing and stuff.  
Any idea what I’m missing?
