ThinPlateSplineWarp using landmarks

Hello everything,
I am new to this forum, so please forgive me if my post is not consistent.
I’m using itk c++. My goal is to register two volumes with non rigid transformation (nifti volumes, from a medical dataset), I have two volumes and two sets of landmarks, one for each volumes.

Firstly I tried to use this example, but it give me nothing really good.

So i tried to use this example:
And here is the result, the moved image (called FixedImageReader in my code) and the fixed image.

Can you help me to understand where i made a mistake ?
Probably in the origin when i write the resampled image ?
Thank you for your help.

Code.cxx (10.5 KB)
pts.txt (1.6 KB)
I put my code and my landmarks file.