Hi Greg,
I am sorry to bother you with something trivial, but I am trying to get the fit_affine_xform_landmarks to work in CMTK. I am entering the following command
fit_affine_xform_landmarks --rigid source.landmarks target.landmarks output.xform
My source.landmarks file is
<namedpointset version="1.0">
<pointworld set="true" name="point 1" x="433.0" y="95.0" z="51.0"/>
<pointworld set="true" name="point 2" x="310.0" y="404.0" z="93.0"/>
<pointworld set="true" name="point 3" x="262.0" y="302.0" z="119.0"/>
</namedpointset>
And I have an analogous file as the target (testing it with 3 points and a rigid transformation). The command just runs (for ever).
I also tried using the landmarks plugin for Fiji, but I could not see how to save the xform folder so that I could later apply it to more stacks.
Thanks for any help you can provide.
Best,
Ruben
library(nat)
x=read.landmarks('myfijiformatpoints')
write.landmarks(x, 'mylandmarks.cmtk', format='cmtk')