Hello,
I am using the Slicermorph module ALPACA to register one surface to another. It is important that I export and use the rigid transformation matrix that is written out during the “Run rigid alignment” process. If I use the tutorial example of the mouse skulls, I would expect that when I apply the rigid transformation matrix to the aligned A_J_ skull (Shown in red in the attached screenshot), it should have aligned with the prealigned A_J mouse skull (shown in yellow). Instead, as you can see although the translation may be correct, the rotation is totally off. Can anyone give any further information to what this Rigid Transformation Matrix is actually reporting? And how would I find the rigid transformation that aligns the source mesh with the target prior to elastic registration? Many thanks in advance.
Hi Erik
As you mentioned, the surfaces should align given that the rigid transformation matrix follows Slicer convention (Transforms Module). So, it is surprising that they do not. On my computer, these models align just fine, so I need to track down what is the source of the problem. Are these meshes the same as the ones Murat has provided as part of SlicerMorph? And just to be sure, are you applying the transformation matrix to the source mesh? (and not the target one). Since ALPACA transforms the source mesh to match the target one, it is the initial source mesh the ones in which you would apply the transformation.