<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello Jan,<div><br></div><div>Please remember that the ITK registration framework ( and initializers ) produce a transform which maps points from the fixed image to the moving image. My first guess is that you are applying the transform in the wrong direction.</div><div><br></div><div>Brad</div><div><br><div><div>On Mar 10, 2015, at 12:14 PM, Jan Schepers <<a href="mailto:janschepers1@gmail.com">janschepers1@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><span style="font-size:12.8000001907349px">Hello,</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">in the method InitializeTransform the rotation matrix is computed as follows:</div><div style="font-size:12.8000001907349px">MovingMatrixType rotationMatrix = movingPrincipalAxis * fixedPrincipalAxis.GetInverse();<br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">This doesn't work for me. If I change it to </div><div style="font-size:12.8000001907349px">MovingMatrixType rotationMatrix = movingPrincipalAxis.GetInverse() * fixedPrincipalAxis;<br></div><div style="font-size:12.8000001907349px">then I get the results that I expected. Strangely, both rotation matrices are not even each other's inverse.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Did anyone experience the same problem?</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Best regards,<br>Jan</div></div>
_____________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://public.kitware.com/mailman/listinfo/insight-users<br></blockquote></div><br></div></body></html>