[ITK-users] ThinPlateSplineKernelTransform and landmark with coordinate in pixel

asertyuio asertyuio at yahoo.fr
Tue Mar 28 07:48:56 EDT 2017


I found the cause of the wrong warping results. It is not exactly clear
for me why I have to do that, but I had to invert the target and the
source landmark.

So what is working is to use as source landmark the landmarks in the
fixed image, and as target landmark, the landmark of the moving image.

I may have a misunderstanding of the meaning of "source" and "target".

Sorry for the noise !

Yann


Le 28/03/2017 à 12:37, asertyuio a écrit :
> Hi all,
>
> I'm using the ThinPlateSplineKernelTransform (the code is mostly from
> the example RegistrationITKv4/ThinPlateSplineWarp.cxx) to warp an image
> onto another, with one set of corresponding landmarks for each image.
> I'm using landmarks from another program, which position are in pixel
> coordinate.
>
> I haven't managed to get correct warping results. I suspected that this
> due to the default spacing/origin set by tiff image reader, i.e. the
> difference of coordinate system between landmark and image. I reset the
> image spacing to 1 and image origin to 1, also try to reverse the Y
> direction, but nothing succeed.
>
> Is there any easy way of transforming pixel based coordinate into image
> coordinate ?
>
> Any help will be much appreciated for your help !
>
> Yann
>
>



More information about the Insight-users mailing list